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
find line 129, add this .on("error", $self.attr("src","images/error.png})
And it looks like .attr("src", $self.attr("data-" + settings.data_attribute)) .on("error", function() { $self.attr("src","images/error.png"); })
4.minify the JS file and enjoy
Hi,
I want the plugin to show a no image or some predefined default image when the src url returns none (404 error). Is it possible?
<img class="lazy" data-original="http://www.mydomain.com/noimage.jpg">
The text was updated successfully, but these errors were encountered: