SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict swaraj_here's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    224
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Fast loading of Javascript

    Dear All,

    I am using a Java script for left sub-menus in the navigation. But it is taking too much time to load in online browser. Can any one of you please tell me how to load the script faster so that the navigation menu can be seen right in the moment of page loading.

    Please help me. Initially I linked that script in an external script, but now I have put embedded that in the page header. Still it is not working.

    I need a solution.

  2. #2
    SitePoint Wizard siteguru's Avatar
    Join Date
    Oct 2002
    Location
    Scotland
    Posts
    3,629
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    A linked page should be faster as this .js file should be cached by the browser.

    Perhaps the scrip itself is overkill and causing a high burden on the browser?
    Ian Anderson
    www.siteguru.co.uk

  3. #3
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Yes, definitely have the javascript in an external file. Also, you might want to try using gzip.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •