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>
Written by Mariz Melo
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jquery
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#