So now you can link to just one single JS file, wherever you want the full DHTML/AJAX power of Scriptaculous.
In case you’re wondering, Prototype.js weighs in at 47Kb and the main Scriptaculous files total 91Kb. That’s a total of 138Kb shrunk down to 49Kb or a drop down to 35.5% of the original size!
Note: the only Scriptaculous file I omitted was the unit testing one. It’s not a core file anyway. Plus it would have blown the size out and I really wanted to keep under 50Kb… which does have a lovely ring to it.
USAGE: Because I’m using the extended ASCII character set to push the compression a little hard to get it all in under 50Kb, you need to tell the client you’re using that character set. This just means adding the charset attribute correctly to the HTML head of your pages (the first line is to keep IE happy):
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
Hope you enjoy it!
Oh, and a big hat-tip to Dean Edwards for the “Packer” magic.