This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 9fceda1a58d4154356fe13a8cbac8516804701ed
tree 9e63b108697d4f073056a4baf33e6115a143b664
parent 73b7a9f6e07ed5b4dee61f3f25645297bf09b664
tree 9e63b108697d4f073056a4baf33e6115a143b664
parent 73b7a9f6e07ed5b4dee61f3f25645297bf09b664
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sun Jan 25 21:19:39 -0800 2009 | |
| |
MIT-LICENSE | Tue Jun 03 13:16:57 -0700 2008 | |
| |
README | Tue Jun 16 22:42:54 -0700 2009 | |
| |
Rakefile | Tue Jun 03 13:16:57 -0700 2008 | |
| |
init.rb | Tue Jun 03 13:16:57 -0700 2008 | |
| |
install.rb | Tue Jun 03 14:33:17 -0700 2008 | |
| |
lib/ | Tue Jun 16 23:07:36 -0700 2009 | |
| |
tasks/ | Tue Jun 09 23:56:39 -0700 2009 | |
| |
test/ | Tue Jun 16 22:34:07 -0700 2009 | |
| |
uninstall.rb | Tue Jun 03 13:16:57 -0700 2008 |
README
IncludeGoogleJs =============== Allows you to easily use Google's hosted javascript libraries instead of your own copies, lightening the load for your server and for your visitors. IncludeGoogleJs will override javascript_include_tag to use Google's hosted Javascript libraries instead of the local copies, as explained at http://ajaxian.com/archives/announcing-ajax-libraries-api-speed-up-your-ajax-apps-with-googles-infrastructure and announced at http://googleajaxsearchapi.blogspot.com/2008/05/speed-up-access-to-your-favorite.html Acts like the regular javascript_include_tag, but adds :include_google_js and :version options. Gets the requested files and swaps out any that Google hosts. Checks for a working connection to ajax.googleapis.com before switching over. Versions are based on the version running locally, or can be overridden by passing :versions => {:scriptaculous => "1.5", :jquery => "1.3.2"}. Should work with Rails > 2.0. Thanks to Brian Hogan and Jose Fernandez for their help. Installation ======= From git: ruby script/plugin install git://github.com/chriswarren/include_google_js.git Examples ======= Pass :include_google_js => true as an option to javascript_include_tag to use Google's copy instead of the local copy. --- Pass :versions => {:scriptaculous => "1.8", :prototype => "1.6"} as an option to javascript_include_tag to specify the version of a library to retrieve. Copyright (c) 2008-2009 Christopher Warren, released under the MIT license







