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

If image fails #70

Open
MarcGodard opened this issue Jul 18, 2014 · 1 comment
Open

If image fails #70

MarcGodard opened this issue Jul 18, 2014 · 1 comment

Comments

@MarcGodard
Copy link

in:
this.one("unveil", function() {

added:
var original = this.getAttribute('src');
this.onerror = function(e) { this.src = original };

Great if the image fails it reverts back to original instead of broken image.

@toshsan
Copy link

toshsan commented May 18, 2016

Submitted this PR today #113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants