Preloading an image can be done with a simple line of JavaScript:
new Image().src='image.png';
For preloading JavaScript files, use the JavaScript include_DOM technique and create a new
<script>
tag, like so:
var js = document.createElement('script'); js.src = 'mysftuff.js';
document.getElementsByTagName('head')[0].appendChild(js);
Here’s the CSS version:
var css = document.createElement('link');
css.href = 'mystyle.css';
css.rel = 'stylesheet';
document.getElementsByTagName('head')[0].appendChild(css);
In the first example, the image is requested but never used, so it doesn’t affect the current page. In the second example, the script is added to the page, so as well as being downloaded, it will be parsed and executed. The same goes for the CSS — it, too, will be applied to the page. If this is undesirable, you can still pre-load the assets using XMLHttpRequest.
For complete tutorial on, "making your website superfast" please visit the following link which i hand picked from many websites and blogs
Preloading images with jQuery