Implementing fallback from Google AJAX Libraries API to local jQuery

Posted by Maxim Z. on Stack Overflow See other posts from Stack Overflow or by Maxim Z.
Published on 2010-06-03T05:48:10Z Indexed on 2010/06/03 5:54 UTC
Read the original article Hit count: 405

After looking up the advantages and disadvantages of using Google's AJAX Libraries API instead of using jQuery locally, I saw that someone wrote in an answer (here on Stack Overflow, of course) that it's possible to get around the downtime that Google's API sometimes experiences by somehow falling back to a local copy of the library you use.

I want to use Google's AJAX Libraries API on my site, but I'm concerned about this possible downtime and I'm curious how such a fallback procedure can be implemented.

Has anybody ever tried doing this? Can you point me towards some code that accomplishes such a feat?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about cdn