We will be using image object to download the image. One of its property src downloads the image. Here is the image object declaration and then downloading of image.
objImage = new Image();
The above line will download the image to cache, we will try to connect displaying of this image with one event to see how fast the image loads. To do this we will have one simple function like this.