img fails to load 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
})