README.md in jquery-rails-cdn-1.1.2 vs README.md in jquery-rails-cdn-1.2.0
- old
+ new
@@ -25,10 +25,11 @@
* Your code changes more often than jQuery upgrades, right?
* `rake assets:precompile` will run faster and use less memory.
Changelog:
+* v1.2.0: Support jQuery3. (Thanks to @CUnknown)
* v1.1.0: Support jQuery2. (Thanks to @timurkhafizov)
* v1.0.0: Options like `defer: true` or `data-turbolinks-eval: false` are allowed to be passed. (Thanks to @mkitt)
* v0.4.0: Added Cloudflare. (Thanks to @damonmorgan)
* v0.3.0: Microsoft and Yandex are now always scheme-less. (Thanks to @atipugin)
* v0.2.1: Use minified version for Yandex. (Thanks to @atipugin)
@@ -87,18 +88,33 @@
```ruby
jquery_include_tag :google, force: true
```
-## jQuery 2
+## jQuery 2 / jQuery 3
If you want to use jQuery 2, drop the following line in `config/initializers/jquery_cdn.rb`:
```ruby
Jquery::Rails::Cdn.major_version = 2
```
+or for jQuery 3:
+
+```ruby
+Jquery::Rails::Cdn.major_version = 3
+```
+
and then in `config/application.rb`:
```ruby
config.assets.precompile += ['jquery2.js']
```
+
+or for jQuery 3:
+
+```ruby
+config.assets.precompile += ['jquery3.js']
+```
+
+## jQuery UI
+To get the same CDN benefits with jQuery UI, we recommend [jquery-ui-rails-cdn](https://github.com/styx/jquery-ui-rails-cdn).