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
$('img').on('load', function() { // do whatever you want });