Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
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:
Code:
<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.
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )