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 355 forks source link

Load invisible images with a specific class #164

Open massic80 opened 6 years ago

massic80 commented 6 years ago

Hi, I was wondering whether there was an option to set loadInvisible = true and, at the same time, having the possibility to tag some hidden images as "loadable"; for instance, I would like not to download images appearing into the (closed) header, but at the same time I would like to load some images which are part of an animation, hidden on landing. The solution which comes in my mind would be a "downloadable-when-hidden" class.