Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preloading images

Status
Not open for further replies.

meeble3

Programmer
Nov 8, 2004
52
GB
Anyone got a script that can successfully preload web page graphics?

I have tried a couple but they don't seem to work.

Thanks
 
Thanks for the links but these don't help. I have images on my page that are background images to tables which is why I think this kind of code doesn't work.

Is there any way to pre-load those?

Thanks...
 
What browsers do you need it to work on (and what browsers are you testing this with)?

If you are using Firefox, you may get some value in extensions like LORI (Lifetime Of Request Info) and TamperData. These can help profile how long things are taking to load (and in what order etc)... and maybe identify high latency to stats counters etc.

Provide a cut-down working example of the problem you are experiencing and we can take it from there.

Cheers,
Jeff


[tt]Jeff's Page [!]@[/!] Code Couch
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Preloading of images is useful to preload rollover images and to preload images for the 'next' page you're loading.

If the images you're talking about are always displayed on the current page (and espicially if that page is your entry point), there is not really any preloading involved. You may wish to optimize the graphics on the page or reduce the number of images to speed up display.

If the page is an internal page on your site, you can probably use some variation on Jeff's second suggestion.

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top