Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chrome ignoring images with blank src="" #14

Closed
sourabh-shankar opened this issue Jul 28, 2014 · 1 comment
Closed

chrome ignoring images with blank src="" #14

sourabh-shankar opened this issue Jul 28, 2014 · 1 comment
Labels

Comments

@sourabh-shankar
Copy link

Following code is working in FF but not in Chrome:
<img id="testimg" data-src="big-image.jpg" src="" />

$("#testimg").lazy({
delay: 5000,
effect: 'fadeIn', 
effectTime: 1500
});

After debugging, I found that Chrome ignore images that contain blank "src" attribute. If I add dummy attributes to code above, the plugin works fine.

  1. <img id="testimg" data-src="big-image.jpg" src="dummy" />
  2. <img id="testimg" data-src="big-image.jpg" alt="dummy" />

Is there any workaround, I don't want to add dummy attributes just to make it work in chrome.

TIA

@dkern
Copy link
Owner

dkern commented Aug 8, 2014

Which version of Lazy did you used? In an older version was a problem like this. Just to be sure it's not that thing. :)

@dkern dkern closed this as completed Aug 13, 2014
@dkern dkern added the invalid label Nov 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants