Last active
December 12, 2015 06:59
-
-
Save pbojinov/4733734 to your computer and use it in GitHub Desktop.
Add jQuery to page in JSONP like manner
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
/** | |
* Add jQuery to page in JSONP like manner | |
*/ | |
(function() { | |
var head = document.getElementsByTagName('head')[0], | |
script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js'; | |
head.appendChild(script); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment