Created
December 13, 2016 14:26
-
-
Save Moccine/16993457d96e07c1ed8f7988f28a5cfe to your computer and use it in GitHub Desktop.
How do to include a Js file in js file ?
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
var imported = document.createElement('script'); | |
imported.src = './path/assets/js/custom.js'; | |
document.head.appendChild(imported); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment