Pentiado / angular-lazy-img

Lightweight lazy load images plugin. Only 1kb after gziping. Pure JavaScript, only Angular as dependency.
MIT License
178 stars 66 forks source link

Does not seem to work in Firefox #1

Closed snc closed 10 years ago

snc commented 10 years ago

Using the default settings everything works fine in Chrome, but when using Firefox, the images aren't loaded. There are no errors in the console.

Have you tested this in Firefox?

snc commented 10 years ago

This only seems to happen when the img tag has no src attribute.

Does not work: <img lazy-img="{{name}}.svg">

Works: <img src="images/empty.png" lazy-img="{{name}}.svg">

Pentiado commented 10 years ago

Hey, sorry for late response. I should turn on email notifications. It was badly designed feature. The problem was that when image has no width or height my plugin wasn't touching it and it was the case on firefox, images without src by default have 0 width. Thank you for pointing me this out. I've just released version 1.0.2 where is fix for this bug.

snc commented 10 years ago

Nice, thanks :-)