I'm creating a web application that uses heavy JavaScript. And there I must handle the case when a image created by
var myImg = new Image();
myImg.src = 'http://...../';
doesn't load soon enough. So adding a handler like
myImg.onload = handlerFunction;
is easy.
But how can I debug that?
I.e. how can I make a image load slowly (or even never...) on purpose?
Is there probably a web service that's offering me such an image that I can easily include by using only the URL to that picture?