Read more

Minified JavaScript and CSS

Tobias Kraze
February 22, 2013Software engineer at makandra GmbH

JavaScripts and CSS should be minified for production use.

Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

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 .

Posted by Tobias Kraze to makandra dev (2013-02-22 12:29)