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

<resource onerror="handle(this)"> #2

Open
devinrhode2 opened this issue Apr 18, 2013 · 1 comment
Open

<resource onerror="handle(this)"> #2

devinrhode2 opened this issue Apr 18, 2013 · 1 comment

Comments

@devinrhode2
Copy link
Owner

var li;
window.li = li;
window.imgOnerror = function(img) {
  console.log('image load error', arguments, this);
  li = img;
};

then

li.src = li.src;

will make the image appear when you're back online

@devinrhode2
Copy link
Owner Author

want to handle images, scripts, css and other resources, <objects>, etc

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

1 participant