Pre-Load Images

Why Pre-Load Anything?

Speed, man, speed! Fast, fast, fast!
Have you ever noticed that pages you've visited in the past always load faster than a page you're visiting for the first time? It seems like you only have to go through all of that item by item downloading once and from that point on, you're good to go. Well, the reason that page, and all those images, came so fast the second time was that they had been "cached" (pronounced cashed).

<script language="JavaScript">
arImageSrc = new Array (

arImageList = new Array ();

for (counter in arImageSrc) {
arImageList[counter] = new Image();
arImageList[counter].src =
// -->
put the above script into your <head> tag

pre-load images javascript speed

Back To Top
© 1998 - 2024
Version 7.21 | Advertise on this site