To reduce the overhead, and use the Google jQuery library instead, you have to make a couple changes. First, in
Change this to:
And in your
app/views/layouts/application.html.* change the header by adding an additional line:
Note, you can't just add
//= require https://../jquery.min.js because sprockets builds the resulting js file each time Rails receives a request (assuming it has changed). It really wouldn't make much sense to download the api and redistribute it, it would defeat the point of even using it in the first place.
All the additions in Rails 3.1 are wonderful, go try them out!