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 John Tel 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.

sirlojik

Programmer
Mar 29, 2005
178
UG
Hi all,
i am writing a skin engine in dhtml. This might be stupid but maybe worth asking.

I have written a function that preloads images for different div elements. what is confusing me is....if an image is preloaded and you request for it to be cached again,is it re-cached....or is ur cache checked first and if image exists its not re-cached?
 

My gut reply would be:

sirlojik said:
ur cache checked first and if image exists its not re-cached

I'm sure it's something that each browser does slightly differently - but that is certainly what I would expect to happen.

Jeff

 

I would say it depends on what your browser's cache settings are.

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]

 
hmm.....is there a way of javascript detecting these browser cache settings. That way i could write a crossbrowser function to check this.

---------------------------
ServerOp: LogicSoft
 

As far as I know, there is no reliable cross-browser client-side way to do this.

Dan



[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top