dinbror / blazy

Hey, be lazy! bLazy.JS is a lightweight pure JavaScript script for lazy loading and multi-serving images. It's working in all modern browsers including IE7+.
http://dinbror.dk/blazy
MIT License
2.63k stars 357 forks source link

progressive jpegs? #94

Open mspiegel opened 8 years ago

mspiegel commented 8 years ago

Is it worth providing support for progressive jpegs, ie. with an optional flag that will render the image when it begins loading rather than when it finishes loading? I recognize that one advantage of blazy is the small javascript footprint so this feature may be out of scope. Thanks for the great library! I'm using it in combination with the jekyll static site generator. I'm explicitly not using blazy for the images at the top of the page and then switching to blazy for the middle and bottom of the page. This strategy seems to make Google Page Speed Insights happy. Here's the page: https://nerdguidedc.com. Thanks again!

tomByrer commented 8 years ago

Might be handy to detect Progressive Jpegs: http://codepen.io/sergejmueller/pen/GJKwv Honestly, I've been compressing most jpegs progressively; they tend to compress better in ImageOptim than non. Bonus: display only when the first scan/frame is downloaded.

BTW @mspiegel I might use your guide when I travel to DC ;)