Caching javascript files.

S

Simon Wigzell

I'm using a thrid party pulldown menu javascript system. It's functionality
is in one javascript file declared in the web pages as follows :

<script src="PDMenu.js" language="JavaScript1.2"></script>

Does the fact that it is declared this way, similar to a picture, mean that
it will be downloaded only once and cached on the visitors system just like
a picture or is it going to be downloaded with every page? I'm on cable so I
can't see any difference, but to a dial up user, the 25k javascript file is
going to be pretty painful to wait for on every page of the website! I've
never seen a discussion about this before. If it is in fact cached, then
there is some other javascript code in my web pages that is written on the
web page, perhaps I can declare it in a similar fashion and have it cached
rather than downloaded every time? Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top