error on fail loding image html code example
Example: js detect all images errors
window.addEventListener("error", e => {
/* query selector images */
// image element on error => replace source
})
window.addEventListener("error", e => {
/* query selector images */
// image element on error => replace source
})