S
sleem
Hi.
I read an article on the web about pre caching images with javascript.
I'm doing it kind of like so:
var myImage = new Image();
myImage.src = "location/image.jpg";
I put that code into a .js file called mySite.js
Given that every page on the site has the following in the line:
<head><script LANGUAGE="JAVASCRIPT" SRC="mySite.js"></head>
Does that mean I'm forcing people's browsers to reload the same image
every time they navigate to a new page on my site?
I read an article on the web about pre caching images with javascript.
I'm doing it kind of like so:
var myImage = new Image();
myImage.src = "location/image.jpg";
I put that code into a .js file called mySite.js
Given that every page on the site has the following in the line:
<head><script LANGUAGE="JAVASCRIPT" SRC="mySite.js"></head>
Does that mean I'm forcing people's browsers to reload the same image
every time they navigate to a new page on my site?