I have a web page that includes a bunch of images. Sometimes the image isn\'t available, so a broken image is displayed in the client\'s browser.
How do I use jQuery
I use lazy load and have to do this in order to make it work properly:
lazyload(); var errorURL = "https://example.com/thisimageexist.png"; $(document).ready(function () { $('[data-src]').on("error", function () { $(this).attr('src', errorURL); }); });