PDA

View Full Version : image preload


Jon Dapron
02-23-2004, 09:23 PM
i have a javascript that preloads menu images. It is contained in an asp file that every page uses. Once the images are loaded, the code will be ignored on the other pages, right?

ucm
02-25-2004, 04:15 AM
every page that calls that asp page will try to redownload the images again if the user has their browser set to "every visit to the page"

however, most people dont change the default setting in their browsers from "automatically" which will cause thebroiwser to download the images once and then check the file size and date/times of those images with whats on the server to see if a newer version is on the server... if there is then the browser will redownload them at that point...

i would recommend avoiding having those images on everyasp page... using frames or iframes would be a great idea to minimize any issues like those ;)