Open YodaSpow opened 5 years ago
https://css-tricks.com/snippets/jquery/better-broken-image-handling/
// Replace source $('img').on("error", function() { $(this).attr('src', '/images/missing.png'); }); // Or, hide them $("img").on("error", function() { $(this).hide(); });
https://css-tricks.com/snippets/jquery/better-broken-image-handling/