If my page contains images with urls on other domains. How long does it take that image to fail if the domain does not respond?
Is it browser dependent?
Currently once an image errors out, I replace the URL with a fail image so I know that it failed.
The image is in fact on the other domain, but it seems to take a while to serve it. These images are favicons.
Here it the klass method that handles the repalcement:
init: function () {
window.addEventListener("error", function (event) {
if (event.target.tagName === 'IMG') {
event.target.src = 'arcmarks/images/image_fail_50.png';
event.preventDefault();
event.stopPropagation();
}
}, true);
},