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 =
+to the answer: Do not run this in firefox 3.6:
img.attr("src", img.attr("src"));
Some amount of images will not be loaded! I prefer:
if($.browser.msie && parseInt($.browser.version, 10) >= 9) { img_load.attr("src", img_load.attr("src")); }