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

Hmmm, background images load but not regular images #133

Closed chad-schroeder closed 7 years ago

chad-schroeder commented 7 years ago

I'm using Ajax to pull in Wordpress posts and multiple background images I set with .b-lazy load fine while all IMG tags I set to .b-lazy on the same page fail to load/fire. Any ideas why one would work and not the other?

The inclusion of bLazy.revalidate() doesn't seem to make a difference.

chad-schroeder commented 7 years ago

Nevermind. Seems a SRC placeholder is mandatory for the IMG tag to load/fire