desandro / imagesloaded

:camera: JavaScript is all like "You images done yet or what?"
https://imagesloaded.desandro.com
MIT License
8.88k stars 1.15k forks source link

Downloads jpeg image when using picture element in browser that supports modern formats #307

Open muster-mark opened 1 year ago

muster-mark commented 1 year ago

I am using vue-masonry which uses this package (I have 4.1.4 of this package installed). It seems this pacakage is causing jpeg images to be downloaded when I am using a picture element with webp and jxl sources. As a result, both the webp image and the jpeg image get downloaded, somewaht losing the benefit of using the modern formats.