What is the best way to set up a local fallback image if the external image does not load or takes too long to load.
Try to make use of the Image.complete property.
var img = new Image(w,h) img.src = "http://...";
Now check periodically if img.complete is true and call some fallback mechanism shuold it still be false after n seconds.
img.complete
false