chalsema
11-29-2006, 01:20 PM
Is this the right javascript code to use to preload images on a web site:
<SCRIPT LANGUAGE = JAVASCRIPT>
if (document.images)
{
img1 = new Image();
img2 = new Image();
img1.src = "imageName1.gif";
img2.src = "imageName2.gif"
}
</SCRIPT>
Our load time is really really slow, and we think we're losing customers from it... do you think preloading the images will help? Or is there something else we can do?
Thanks!
<SCRIPT LANGUAGE = JAVASCRIPT>
if (document.images)
{
img1 = new Image();
img2 = new Image();
img1.src = "imageName1.gif";
img2.src = "imageName2.gif"
}
</SCRIPT>
Our load time is really really slow, and we think we're losing customers from it... do you think preloading the images will help? Or is there something else we can do?
Thanks!