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

Disallow multiple b-loaded classes -request #84

Closed k03n00b closed 8 years ago

k03n00b commented 8 years ago

Would it easy (and not too expensive) to implement, that bLazy would check if class already exists? With (over)usage of revalidate will result multiple classes: b_loaded b_loaded b_loaded

Thanks

dinbror commented 8 years ago

Hey @k03n00b

What version are you using. It shouldn't be possible after version 1.5.x

dinbror commented 8 years ago

Ok I see it and will fix it. But I think its more important to fix the issue that you need to call revalidate right after init.

Have you only seen the load issue on page refresh?

dinbror commented 8 years ago

Fixed in version 1.6.0