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

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 04-12-2008, 03:22 PM   PM User | #1
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
Slimming Down Prototype & Scriptaculous

I really like prototype and scriptaculous but in combination they're HUGE. In total my js downloads on the site I'm working on at the moment is over 200Kb and thats minified, with gzip its down to 50Kb but thats still massive for what is essentially, a few minor interface niceties.

Now, I'm sure I could reduce that down massively if I could cut prototype and scriptaculous down to just the parts I'm using. Prototype is over 120Kb now (uncompressed) but all I'm really using it for is $() and the ajax stuff. I honestly don't use anything else that I can think of but I also use scriptaculous' autocompleter and occasionally the drag/drop & sorttables (but not often). I use prototip quite frequently too, so how can I shrink it all down without breaking anything or losing the functionality I've come to depend on.

Someone must have wanted to do this before now, but I've no idea what I would google for. Is there anywhere I can go to find out all the various dependancies?
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote
Old 04-12-2008, 09:08 PM   PM User | #2
tagnu
Regular Coder

 
Join Date: Nov 2007
Location: 127.0.0.1
Posts: 348
Thanks: 26
Thanked 40 Times in 39 Posts
tagnu will become famous soon enough
hope you've tried their discussion group.

An excerpt from one the discussions

Quote:
"...a lightweight prototype included in moo.fx or moo-tools and
you can find a link to a compress version of 1.5.0 final in the blog.."
In case you don't get any answers, try their irc

#prototype on irc.freenode.net.

My search keyword was "modular prototype"

Last edited by tagnu; 04-12-2008 at 09:12 PM..
tagnu is offline   Reply With Quote
Old 04-12-2008, 11:39 PM   PM User | #3
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
The mootools prototype.light.js includes just the stuff needed for moo.fx but none of the ajax stuff. Googling for modular prototype might turn up something though.
__________________
http://www.hazelryan.co.uk
NancyJ 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 12:48 AM.


Advertisement
Log in to turn off these ads.