Created
October 5, 2010 17:43
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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