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

Ticket #4191 (closed enhancement: worksforme)

Opened 2 years ago

Last modified 2 years ago

Minified files

Reported by: jerome@grincheux.be Assigned to: thomas@fesch.at
Priority: low Milestone:
Component: script.aculo.us Version:
Severity: normal Keywords:
Cc:

Description

It would nice to have a minified version of the javascript files, for a faster loading of the files. Without spaces, comments, etc. And/or perphaps a gziped version, with on-the-fly decompression (with javascript?/php/asp)

Change History

03/11/06 19:25:27 changed by madrobby

  • priority changed from normal to low.

For most applications, this would probably be overkill.

For servers like Apache you can activate on-the-fly gzip compression or pre-gzip the files yourself. JavaScript compressors have a tradition of breaking things and making bug-hunting extremely difficult.

Personally I recommend to investigate server content expiration settings. This is by far the best method to optimize the user experience (correctly configured, the browser downloads the scripts only once, and then rechecks only so and so often). Works great here.

There was some talk about this on the mailing list a while ago, so I'm leaving this request open. Patches are welcome (please include appropriate tests and a rake task for packaging!).

04/01/06 23:26:32 changed by madrobby

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

With proper expiration headers and gzipping in place, I think this is not necessary and doesn't fall into the realm of the script.aculo.us distribution.

Feel free to reopen the ticket with any patches that prove me wrong. :)