Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-17-2006, 07:14 AM   PM User | #1
SecretPete
Banned

 
Join Date: Dec 2005
Location: That's a secret.
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
SecretPete has a little shameless behaviour in the past
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?
SecretPete is offline   Reply With Quote
Old 12-17-2006, 04:07 PM   PM User | #2
ess
Regular Coder

 
Join Date: Oct 2006
Location: United Kingdom
Posts: 865
Thanks: 7
Thanked 29 Times in 28 Posts
ess will become famous soon enough
Try placing your JS script in the <head></head> tag. That way, it would be loaded before the <body></body> tags.

Good luck.
Ess
ess is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:12 AM.


Advertisement
Log in to turn off these ads.