![]() |
Java Scripts. Preloading Banners. Preloading Graphics Javascript. |
|
Handy
Tip : Using a preloading script will force your pages to load
quicker if they use the same graphics such as a headline banner
or web site logo.
Preloading Graphics for faster loading pages.If you have multiple pages using the same graphics, (for example, a banner header) you can make browsing your site a quicker experience for your visitors by building a mini cache. Here is a preloading graphics javascript that will do it for you. All major web browsers have their own caching system. Browsers cache files, only after you see a page at least once, which doesn't give the optimum performance during the first visit to a page. A handy trick is to pre-load the most widely used images at your site. For example, your visitor is at your home page and the next pages all display a top banner. You can use this Javascript to pre-load the top banner, therefore making the rest of your website load much quicker. Paste the code below into your first page straight under your <body> tag. For most html editors use the "insert html" function or something similar. Make sure you change the names "yourgraphic.gif" and "yourgraphic2.gif" to the names of your real images. You can preload as many graphics as you wish: |
Custom Search
|