Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Caching javascript files.

Thread Tools

Caching javascript files.

Simon Wigzell
Posts: n/a
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!

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable page caching without disabling caching of jpegs andstylesheets etc JimLad ASP .Net 3 01-21-2010 10:13 AM
How can I prevent Caching of JavaScript and CSS files ONLY when I deploy a new application? mark4asp ASP .Net 7 10-16-2007 01:13 PM
ASP.NET Javascript Caching Problem Barney ASP .Net 0 09-18-2006 08:11 AM
Fragment Caching inside page caching? Troy Simpson ASP .Net 0 01-19-2004 11:57 AM
trouble with caching or caching the trouble Hypo ASP .Net 6 08-01-2003 07:11 AM