save-images icon indicating copy to clipboard operation
save-images copied to clipboard

Dealing with data-srcset

Open Patty-OFurniture opened this issue 3 months ago • 2 comments

With data-srcset, I get several garbage files, some acceptable, and one "best" image. All the same, different resolutions of course. I added a best selector to the little-used "no lazy load" plugin by Tension Extension, maybe you can add a similar option? I still have testing and fixes to make, but combining the two works perfectly for me now.

Of course, I'm only choosing what appears to be the largest image, you have file size and dimension options that complicate it. But, here is my naive attempt in case it is helpful. Maybe as an example of what not to do ha!

https://github.com/Patty-OFurniture/no-lazy-load/tree/main

Patty-OFurniture avatar Mar 26 '24 00:03 Patty-OFurniture