Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: prototype.js too big  (Read 3113 times)

Pali

  • Full Member
  • ***
  • Karma: 16
  • Posts: 111
    • LE-PAVON
prototype.js too big
« on: October 17, 2006, 05:01:09 PM »

Hallo everybody,

im using lightbox as my gallery, and i have to add link to prototype.js, lightbox.js to the header of index.php. This makes my site 100k bigger even if im not at gallery page.

Is there any way to load this scripts to header only on gallery page?

Thanx for help.

Nice day...
Logged
I like sNews!

Keyrocks

  • Doug
  • Administrator
  • ULTIMATE member
  • ******
  • Karma: 451
  • Posts: 6252
  • Semantically Challenged
    • snews.ca
prototype.js too big
« Reply #1 on: October 17, 2006, 05:07:44 PM »

I also started out with Lightbox. Then I replaced it with the ThickBox 2.0 technique - it does virtually the same thing but it is smaller and faster and easier to work with. I'd recommend you do the same. :)
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

Pali

  • Full Member
  • ***
  • Karma: 16
  • Posts: 111
    • LE-PAVON
prototype.js too big
« Reply #2 on: October 17, 2006, 05:57:21 PM »

thanx, i will try it
Logged
I like sNews!