[Javascript] image preloading.

Chris Jensen cj at nvisiongr.com
Fri Mar 30 11:25:39 CST 2001


this is something that theoretically should be handled by the client browser.  if the cache isn't on, the image won't be cached and therefore won't be "pre-loaded".  also absolute pathnames to the document may be giving it some trouble...

hth,
chris

On Friday, March 30, 2001 11:43 AM, Antil Reyes Rafael Martin - EXT <ExtRAntil at vto.com> wrote:
>Hello everyone:
>
>My problem is this: When i get to a part of the code, 
>ie opening a window, i gotta be sure the image contained 
>in that new window´s been already preloaded. I use something 
>like this:
>
>var preLoadImg = new Image();
>preLoadImg.src = "http://www.whatever.com/blah.jpg"
>
>So i think when it goes to the next instruction it SHOULD have 
>the image preloaded. But it doesn´t. What´s wrong??? 
>any suggestion??
>
>Thanx in advance, hope you answer me soon.
>
>
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>http://www.LaTech.edu/mailman/listinfo/javascript
>


-- 
---------------------------------------
c h r i s t o p h e r . a . j e n s e n
---------------------------------------
n Vision/usa inc.
w: http://www.nvisionusa.com
e: cj at nvisiongr.com
p: 6164566566
f: 6164566599






More information about the Javascript mailing list