I\'m using the canvas feature of html5. I\'ve got some images to draw on the canvas and I need to check that they have all loaded before I can use them.
I have declared
If you want to call a function when all the images are loaded, You can try following, it worked for me
var imageCount = images.length; var imagesLoaded = 0; for(var i=0; i