Question: Using JS Preloading images is only effective for images being loaded on PRECEDING pages, not on the same page thats showing the image, right?
This would mean that you couldnt preload any images on your index.html page, since it is the first loaded page?
@FangApr 06.2005 — #No, the JavaScript for pre-loading images is processed before the rest of the page is loaded. You could pre-load all images for your site in index.html (not advisable).
@ranosbauthorApr 07.2005 — #But the loading speed would be the same? Seems it wouldnt matter if it was loaded first or during page normal loading...???
So preloading images for the same page thats displaying them does not speed up the loading of your page then?
@robo_neojetsamApr 07.2005 — #so preloading of images would load the images (or what ever your preloading) first before the rest of the page, im sure it would slow the page loading time down.
@FangApr 07.2005 — #The point of pre-loading images is that when the page is displayed the images are available for imediate display. You don't get an empty image box after the page loads while an image is being downloaded.
And yes it will delay the initial display of the page.
@robo_neojetsamApr 07.2005 — #The point of pre-loading images is that when the page is displayed the images are available for imediate display. You don't get an empty image box after the page loads while an image is being downloaded.
And yes it will delay the initial display of the page.[/QUOTE] Thats exactally what i mean, it will slow page loading time but it wont display those box thingies that show an image is being loaded.
Is it worth having extra loading time, in that time it [I]might [/I] take to load, your users might decide not to load the page at all.
@vietadamMay 11.2005 — #What if I do want to preload all images on the page, even the ones that will be initially loaded OR just be able to define their sources at the beginning of the page.
I work through ebay and I am constantly changing images names and some are like 167a, 167b, 167c... and so forth, i've found a way to script the production of the names, but i don't know of a way to make the :
<img src="XXXXa.jpg"> be defined at the beginning of the page..
rather than go through the code each time to change each image name for every item.