Minified JavaScript and CSS

Posted About 11 years ago. Visible to the public.

JavaScripts and CSS should be minified for production use.

In Rails 3.1+ the asset pipeline will take care of this. Thus you're best off using an uncompressed version of your Javascript in development. Also load the non-minified versions of libraries. This way debugging will be easier and you will still get all the minification love once deployed.

In Rails 2.3 and 3.0 you should at least embed external JavaScript libraries in minified form, using something like JavaScript compressor Show archive.org snapshot .

Tobias Kraze
Last edit
Almost 7 years ago
Deleted user #20
License
Source code in this card is licensed under the MIT License.
Posted by Tobias Kraze to makandra dev (2013-02-22 11:29)