README.md in jquery-rails-cdn-yjchen-0.3.1 vs README.md in jquery-rails-cdn-yjchen-0.3.2
- old
+ new
@@ -25,10 +25,11 @@
* Updating your js code won't evict the entire cache in browsers - your code changes more often than jQuery upgrades, right?
* `rake assets:precompile` takes less peak memory usage.
Changelog:
+* v0.3.2: Support using minimized libraries.
* v0.3.1: Fix packaging bug.
* v0.3.0: Microsoft and Yandex are now always scheme-less. (Thanks to @atipugin)
* v0.2.2: Remove Bootstrap and Angular.js to their own rails engine.
* v0.2.1: Add Angular.js
* v0.2.0: Update to match original codes and update bootstrap to 2.1.0
@@ -102,8 +103,18 @@
To fallback to rails assets when CDN is not available, add `jquery.js` and `jquery-ui.js` in `config/environments/production.rb`
```ruby
config.assets.precompile += %w( jquery.js jquery-ui.js )
```
+
+## Options
+
+Set :compressed to use minimized library locally like this:
+
+ = jquery_include_tag :default, :compressed => true
+
+Remember to change the assets name in confign/environments/production.rb:
+
+ config.assets.precompile += %w( jquery.min.js)
## Clarification
[jquery-rails-cdn](https://github.com/kenn/jquery-rails-cdn) supports jQuery from jquery-rails gem, but [not jQuery UI](https://github.com/kenn/jquery-rails-cdn/issues/11) in the same gem. [jquery-ui-rails-cdn](https://github.com/styx/jquery-ui-rails-cdn) supports jQuery UI from jquery-ui-rails gem. This one supports both jQuery and jQuery UI from jquery-rails gem.