colindean / plas

Pittco LAN Administration System
http://pittco.org
Other
14 stars 4 forks source link

Use AssetHat for asset compression #52

Closed colindean closed 12 years ago

colindean commented 13 years ago

https://github.com/mintdigital/asset_hat/blob/master/README.rdoc

Your assets are covered.

With Rails’ default asset caching, CSS and JS are concatenated (not even minified) at runtime when that bundle is first requested. Not good enough. To make your pages load faster, AssetHat can automatically:

Easily minify and bundle CSS and JS to reduce file sizes and HTTP requests. Do this on deploy, and avoid any performance hit at runtime. Load popular third-party JS (like jQuery, YUI, and Ext JS) from Google's CDN when in production, or from localhost in development. It’s as simple as <%= include_js :jquery %> to load straight from Google. Force image URLs in your CSS to use CDN subdomains (including SSL support), not just the current host. Add an image’s last Git commit ID to its CSS URLs to bust browser caches (e.g., /images/foo.png?ab12cd3).

colindean commented 12 years ago

This is mostly unnecessary now that Rails 3.1 has an asset pipeline.