check if image is loaded jquery 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
})