Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #5830 (closed enhancement: wontfix)

Opened 3 years ago

Last modified 3 years ago

Compression....

Reported by: samiam14@gmail.com Assigned to: thomas@fesch.at
Priority: normal Milestone:
Component: script.aculo.us Version:
Severity: normal Keywords:
Cc:

Description

I think that having a compressed version of the script(int .js form) would be very beneficial to those using the scripts on their website. I am using the effects script along with prototype (which really needs the compression the most) and I am almost to 100kb without writing much of my own code. There are other options to the script such as jQuery but they do not have the fully object oriented capabilities this script does. I have tried to use compression on the code but there are errors in the code which prevent it from compressing the rest of the code after the first 600(ish) lines. Please look into the compression of the code. A good compressor that I use for my other code is the w3compiler at http://www.w3compiler.com/

Change History

08/20/06 01:05:59 changed by tuxie@dekadance.se

Here is a free online javascript packer: http://dean.edwards.name/packer/

You can also get the .NET version (probably works with Mono) or a Perl version here: http://dean.edwards.name/download/#packer

08/20/06 02:39:09 changed by devslashnull@gmail.com

  • status changed from new to closed.
  • resolution set to wontfix.

I've seen this brought up many times on Trac, but no one ever seems to want to do anything about it. If you want prototype.js et al to be compression-friendly, then submit a patch which does just that - don't expect others to do it for you. I decided to wrote a blog entry to investigate using compression, which you can see here. You'll find that packing the source before gzipping (using the Dojo compressor and Dean Edward's packer) doesn't give you much once both are gzipped.