Last active
August 29, 2015 14:08
-
-
Save Dottenpixel/19f9388d6eb4f0f6abeb to your computer and use it in GitHub Desktop.
Load jQuery asynchronously in closure
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 jq = document.createElement('script'); | |
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"; | |
jq.setAttribute('async', 'true'); | |
document.head.appendChild(jq); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment