kaizau / Lazy-Load-Images-without-jQuery

Lazy load your images without the overhead of a library. IE7+, FF, Chrome.
http://kaizau.github.com/Lazy-Load-Images-without-jQuery/
94 stars 26 forks source link

Can this be used to lazyload div ? instead of just images? #11

Closed nabtron closed 9 years ago

nabtron commented 9 years ago

Can this be used to lazyload div ? instead of just images? Like anything in that div to be loaded lazily?

kaizau commented 9 years ago

As it is, just image tags. Should be pretty straightforward to modify however: changing the selector and removing the parts that splice in img src.