I know there is a lot of these on Stackoverflow but I haven\'t found one that works for me in a recent version of jquery (1.10.2).
I did try:
$(\".lazy
In the case of waiting of loading multiple images:
var images = $("#div-with-images img"); var unloaded = images.length; images.on('load', function(){ -- unloaded; if (!unloaded) { // here all images loaded, do your stuff } });