How can I detect when an image has finished loading be it from the server or the browser cache? I want to load various images in the same tag and d
The onload document's event will fire only after all the elements, images included, have fully loaded.
onload
The onload 's event will fire after the single image have fully loaded.
So you can attach a listener to these events, using jQuery objects or DOM's addEventListener (and IE's attachEvent)