Skip to content

Instantly share code, notes, and snippets.

@ethangardner
Created October 5, 2010 17:43
Show Gist options
  • Save ethangardner/611982 to your computer and use it in GitHub Desktop.
Save ethangardner/611982 to your computer and use it in GitHub Desktop.
code snippet to offer fallback to local file if google's ajax api is unavailable
<!-- From http://github.com/paulirish/html5-boilerplate -->
<!-- Grab Google CDN's jQuery. fall back to local if necessary -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>!window.jQuery && document.write('<script src="js/jquery-1.4.2.min.js"><\/script>')</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment