View Full Version : Preloading .JS Files - Possible?

12-17-2006, 07:14 AM
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?

12-17-2006, 04:07 PM
Try placing your JS script in the <head></head> tag. That way, it would be loaded before the <body></body> tags.

Good luck.