Last Updated: February 25, 2016
·
1.325K
· jmarizgit

Jquery CDN fallback

I usually use Google (or cloudflare) as my primary CDN for JQuery. But in case Google servers are not available you can use this snippet and load a local copy of JQuery instead.

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script><script>!window.jQuery && document.write('<script src="js/jquery.min.js"><\/script>')</script>