Possible Duplicate:
JavaScript Preloading Images
I am using JS to set img.hidden=false some time after the page has loaded. This causes the image to download and resizes the img element - which I would like to avoid (I am using inline style width:2em to size the image). Secondly when I change the img source, there is a slight delay as the second image downloads.
How can I download my images prior to showing them on the page...?