Caching javascript files.

Discussion in 'Javascript' started by Simon Wigzell, Sep 1, 2003.

  1. 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!
    Simon Wigzell, Sep 1, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hypo
    Replies:
    6
    Views:
    393
  2. Troy Simpson

    Fragment Caching inside page caching?

    Troy Simpson, Jan 19, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    768
    Troy Simpson
    Jan 19, 2004
  3. spammy
    Replies:
    3
    Views:
    4,130
    Jason DeFontes
    May 21, 2004
  4. mark4asp
    Replies:
    7
    Views:
    412
    mark4asp
    Oct 16, 2007
  5. JimLad
    Replies:
    3
    Views:
    902
    JimLad
    Jan 21, 2010
Loading...

Share This Page