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 3 of 3
  1. #1
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts

    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?

  • #2
    Regular Coder
    Join Date
    Nov 2007
    Location
    127.0.0.1
    Posts
    348
    Thanks
    26
    Thanked 40 Times in 39 Posts
    hope you've tried their discussion group.

    An excerpt from one the discussions

    "...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.

  • #3
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    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.


  •  

    Posting Permissions

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