You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the image in data-src or data-srcset fail to load, then it will change back to the default src value. It does this by creating a data-original attribute when trying to load the other images.
I also created a pull request to have this merged in. I also re-factored some duplicate code.
Is there any way to load default image on error with 2.x version ? it was possible with 1.x version through setting error listener like following.
on("error", function() {
$self.attr("src","/resources/image/error.jpg");
})
how can i do that using div or img element with 2.x version ?
The text was updated successfully, but these errors were encountered: