Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

HTML Caching?

Posted on 2000-05-17
2
Medium Priority
?
151 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 200 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

916 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