Created
December 20, 2017 04:31
-
-
Save sysnajar/0fb9e855c08fffcbe6054d4712fbe8a8 to your computer and use it in GitHub Desktop.
dynamically include 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
["js/ios-websocket-hack.js", "js/apprtc.debug.js", "js/appwindow.js"].forEach(function (path) { | |
var script = document.createElement("script"); | |
script.type = "text/javascript"; | |
script.src = path; | |
script.async = false; | |
document.getElementsByTagName("head")[0].appendChild(script); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment