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

Multiple background support #142

Open unnamedfeeling opened 7 years ago

unnamedfeeling commented 7 years ago

Is there a multiple background support? Didn`t find anything on this topic.

dinbror commented 7 years ago

@unnamedfeeling Something like the built-in breakpoints feature? http://dinbror.dk/blog/blazy/#Multi

unnamedfeeling commented 7 years ago

@dinbror Maybe it is possible to have a single breakpoint to show all images at a time? I have meant this - https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Background_and_Borders/Using_CSS_multiple_backgrounds I needed to lazyload multiple backgrounds for a block that has 3 background images attached to it (technique from a link). Maybe it is already implemented? I did not find instructions on this. Neither i could find it in source...