Solved

HTML Caching?

Posted on 2000-05-17
2
129 Views
Last Modified: 2010-04-09
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.
0
Comment
Question by:lbowers
  • 2
2 Comments
 
LVL 1

Expert Comment

by:anyanicky
ID: 2817359
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>
 
0
 
LVL 1

Accepted Solution

by:
anyanicky earned 50 total points
ID: 2817363
Here is another way to do it using iframes and layers

http://www.faqts.com/knowledge-base/view.phtml/aid/1900/fid/124
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question