Created
October 21, 2017 02:31
-
-
Save subtleGradient/4b51a6267986643e258d7b58ae06f87f to your computer and use it in GitHub Desktop.
Dynamic script loading code from 2011
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 load(URL){ var scr, script | |
;(scr = document.createElement('script')).src = URL | |
;(script = document.getElementsByTagName('script')[0]).parentNode.insertBefore(scr, script) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't use this code style anymore. haha