Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthortripper
    • CommentTimeDec 23rd 2006
     
    Hello, on the page in question, www.trippertreats.com/Products/Teachers, I have a SWF object that contains a flash reading "Please Wait". It stays there until the underlying image loads. The thing is, I have more than 50 of these. Now, in my javascript header file, I write

    var swfPleaseWait = new SWFObject("/FlashFiles/PleaseWait.swf", "pleaseWaitFlash", "100%", "100%", "8", "#000000")

    and then I swfPleaseWait.write it to each applicable div as the page is loading. Now, FF is smart and stores swfPleaseWait in cache, so that it only downloads it once, and instantaneously displays it all over the page. IE, however, is dumb, and redownloads it every time, so that the IE version of the page takes (literally) about 20 times as long to download. This is clearly unacceptable. Does anyone know a way to force IE to use the swfPleaseWait from cache? Thanks in advance.
    • CommentAuthorGeoff
    • CommentTimeDec 23rd 2006
     
    IE has weird cache issues like that... i think you have to wait for it to download the swf completely before it's available from the cache...

    not sure what you could do here aside from some tricky javascript that waits for the first swf to load before writing the other swfs..


    BUT, that said, your setup for this sounds like it's really over the top - why not just put an animated gif as the background image in all the divs or table cells that your images are in? that way the images would just load over that animated gif...

    or, you could leave it out in the first place, since browsers these days will show an image placeholder anyway for images that aren't done loading.
    • CommentAuthortripper
    • CommentTimeDec 24th 2006
     
    Over the top definitely describes my site in general.

    I tried the javascript, waiting for the onload event, and then swfPleaseWait.write'ing to the placeholders with no avail. So, I thought about your advice, and took it. You're right, having 50 flashing please wait signs is a little disconcerting, and maybe a little nerve-racking, so I decided to only use two of my swfPleaseWait's for the two large images. Thanks for the advice!

    You may have prevented some of my viewers from having seizures...