Created
March 27, 2012 16:40
-
-
Save nikhgupta/2217774 to your computer and use it in GitHub Desktop.
jQuery: include from Google or fallback to hosted
This file contains hidden or 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
| <html> | |
| <head> | |
| .. | |
| <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> | |
| <script type="text/javascript">if (typeof jQuery == 'undefined') document.write(unescape("%3Cscript src='/path/to/your/jquery' type='text/javascript'%3E%3C/script%3E"));</script> | |
| </head> | |
| <body> | |
| .. | |
| <!-- some jquery using scripts --> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment