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

How to detect a load failed / 404 event #75

Open
MagneticLlama opened this issue Mar 2, 2020 · 1 comment
Open

How to detect a load failed / 404 event #75

MagneticLlama opened this issue Mar 2, 2020 · 1 comment

Comments

@MagneticLlama
Copy link

I need to display a notification to the user when an image resource fails to load. Looking through the documentation and issues, I haven't found a way to do this.

@soulshake
Copy link

I have the same question. I tried using the listeners as described in the README but couldn't get it to work (data as shown in the example isn't defined).

My workaround:

document.querySelector('.iv-image-wrap img').addEventListener('error', myCallback);

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