| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Preload using js|
Is there a way I can preload a class file and a zip file for a java applet on the next page using js on the current page?
Would placing the java applet into a hidden layer on the previous page do the trick for you?
Cool. It was simpler than I made it out to be after all. I know most people don't like java applets but I have some that I think are extremely neat.
From the page tedster referenced above comes: "And just for completeness, the standard HTML trick of preloading images is done via putting something like this:
<img src="big.gif" width=1 height=1>
on a page before "big.gif" is needed - then when it is later loaded it will appear instantly as it will be in the browser image cache."
Well, that was not standard information for me and is a fantastic pickup for precisely what I need. Thank you.
Yep - good trick! Will be using that soon.
All this code does is cache the image for later use, the way you would do with a roll-over image, and nothing is visible until you want it to be.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved