I am trying to preload a couple of images and would like my page to go on hold until all of the images are loaded. So what I am doing is this:
var numPics =
Do not create a dynamic source as many suggest, all you have to do is apply the source after binding the load event like so...
$("img").load(function() {alert("loaded!"}).attr("src", imgSource);