0
Welcome Guest! Login
0 items Join Now

Are js scripts cached?

    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Are js scripts cached?

    Posted 18 years 5 months ago
    • hi,

      i know nothing about javascript.
      can someone enlighten me on this.

      i'm testing youyou's mod of versatility (it is beautiful), and noticed it uses 4 separate scripts. i was wondering whether these scripts are cached or do they get dl'ded on every page load.

      thanks in advance
    • Say no to Internet Explorer 6.
      twitter.com/mark_up
    • Youyou's Avatar
    • Youyou
    • Elite Rocketeer
    • Posts: 699
    • Thanks: 0

    Re: Are js scripts cached?

    Posted 18 years 5 months ago
    • It depends on the configuration you have in index.php.
      • If ($moofx_left="yes" and there is some module in left) or ($moofx_right="yes" and there is some module in right): moofx is loaded (prototype.lite.js , moo.fx.js and moo.fx.pack.js)
      • If $menu_type = "transmenu" : transmenu_packed_thecoloryouhavechoose.js is loaded
      • If $menu_type = "suckerfish" or $menu_type = "supersucker" : ie.js is loaded
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: Are js scripts cached?

    Posted 18 years 5 months ago
    • javascript is cached by default. I've noticed that safari does some extra checking with javascript so it doesn't appear to cache as well as firefox does.
    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Re: Are js scripts cached?

    Posted 18 years 5 months ago
    • Thanks for the reply guys. thats good to know andy.
      i've disabled moofx as you suggested youyou. gave it a slight performance boost.

      OT, andy did you get my PM, it is quite urgent... simply say no if you don't agree, but i need to know so i can move on to other options if i have to. thanks heaps
    • Say no to Internet Explorer 6.
      twitter.com/mark_up

Time to create page: 0.048 seconds