Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Banned
    Join Date
    Dec 2005
    Location
    That's a secret.
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Preloading .JS Files - Possible?

    Hey, I'm using Lightbox 2, http://www.huddletogether.com/projects/lightbox2/, on my blog.

    Seeing as my site is image-heavy, it takes a fair amount of time to fully load. Unfortunately, lightbox is only activated once everything is loaded (I'm assuming the .js files are loaded last?).

    Is there any way to preload the .js script itself?

  • #2
    ess
    ess is offline
    Regular Coder
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    866
    Thanks
    7
    Thanked 30 Times in 29 Posts
    Try placing your JS script in the <head></head> tag. That way, it would be loaded before the <body></body> tags.

    Good luck.
    Ess


  •  

    Posting Permissions

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