Compressed Javascript Libraries
From KallestadWiki
I posted a blog entry about compressing javascript not too long ago, and that page has received a fair amount of traffic. I came to realize that there are a fair amount of open source libraries out there that are quite popular, but also quite large in size, and the project maintainers - for a variety of good reasons - do not publish compressed versions of their libraries.
I decided it would be a good idea to provide the public at large with a place to download compressed versions of various javascript libraries. It is my hope that this resource helps to increase the public use of these libraries, as I'm sure there are many people out there who do not use them because of the immense download times associated with their usage.
To compress these libraries, I am using a combination of the open source jscompress framework, and Dean Edward's packing utilities. This combination has proven most effective in reducing the size in my testing. I also have a set of instructions for compressing javascript libraries most effectively on your own.
I have the following compressed javascript libraries available for download. If you would like to see another library added to this list, please request it via the forum.
- prototype.js version 1.50 from 70K to 30K, 14K with gzip compression
- prototype.js version 1.50 RC2 from 67K to 28K, and additionally with gzip compression, the file size shrinks to 13k
- scriptaculous version 1.7 Beta 2 from 111K to 43K, 19K with gzip compression.
- Scriptaculous 1.7 - 1.7 was released. The download links are on the linked page. I'll update this page with all the right links within a few days.
- Scriptaculous 1.7.1 Beta (Including Prototype) - down to 36K with gzip compression, 83K without gzip compression. It looks like it's getting even smaller :)
- Scriptaculous 1.7.1 Beta Prototype, Builder, And Effects - 31K with gzip compression,58K uncompressed, normally 134K
Other versions are available, check these blog entries:
Todo: Add the following popular javascript libraries:
- Rico
- Lightbox
- Darkbox
- Behaviour
- vbulletin
- jquery
Right now, this is all a manual process for me. As soon as I get around to building an automated compression utility, updates will be a lot smoother.
