Created
August 1, 2018 22:03
-
-
Save wpsmithtwc/e637d9070e9eeb2a3b9aa71f003e7a04 to your computer and use it in GitHub Desktop.
JavaScript: Inject jQuery with JavaScript into head.
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
;(function() { | |
var tag = document.createElement('script'); | |
tag.src = '//code.jquery.com/jquery.min.js'; | |
tag.type = 'text/javascript'; | |
tag.async = 'true'; | |
var hookTag = document.getElementsByTagName('head')[0]; | |
hookTag.appendChild(tag); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment