Last active
April 13, 2018 01:27
-
-
Save benjaminfisher/2597504 to your computer and use it in GitHub Desktop.
Bullet proof jQuery CDN loading using head.js
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
| <script> | |
| head.js('http://code.jquery.com/jquery-1.9.1.min.js', function(){ | |
| if(typeof jQuery === 'undefined'){ | |
| head.js('js/lib/jquery/jquery-1.9.1.min.js'); | |
| }; | |
| }) | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment