Link to home
Start Free TrialLog in
Avatar of lbowers
lbowersFlag for United Kingdom of Great Britain and Northern Ireland

asked on

HTML Caching?

This may be a stupid question but...

Is it possible to get my HTML pages to cache before displaying them? I ideally want all content (graphics, text etc) to load prior to the page being displayed. Thanks in advance.

Leigh.
Avatar of anyanicky
anyanicky

Try this...

<script type="JavaScript">
if(document.images){
 var arrFiles = new Array("1.gif","2.gif","3.gif");
 var arrGifs  = new Array();
 for(i = 0;i < arrFiles.length;i++){
  arrGifs[i] = new Image();
  arrGifs[i].src = "IMAGEPATH/" + arrFiles[i];
 }
}
</script>
 
ASKER CERTIFIED SOLUTION
Avatar of anyanicky
anyanicky

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial