Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementing fallback from Google AJAX Libraries API to local jQuery [duplicate]

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.

like image 573
Maxim Zaslavsky Avatar asked Nov 06 '22 12:11

Maxim Zaslavsky


1 Answers

I guess you are looking for this answer

Best way to use Google's hosted jQuery, but fall back to my hosted library on Google fail

like image 86
harpax Avatar answered Nov 12 '22 16:11

harpax