|
Preloading Images
If you're
looking for a way to speed up your web site's perceived load time, preloading
your images may be your answer. By using the following JavaScript code, you
can preload the images you specify prior to your web page opening. This will
enable your images to promptly display instead of your visitors having to
wait for them to load.
Place this code between your <HEAD> and </HEAD> tags:
<SCRIPT
language="JavaScript">
<!-- Script courtesy of http://www.web-source.net - Your Guide to Professional
Web Site Design and Development
var preload=new Image();
preload.src="(image.gif)";
// -->
</SCRIPT> |
Edit the text
indicated in red to your image file name.
|
|
|
Submit
your JavaScript code snippets. We'll credit you and give you a link to your
website.
|