Skip to content

Instantly share code, notes, and snippets.

@Moccine
Created December 13, 2016 14:26
Show Gist options
  • Save Moccine/16993457d96e07c1ed8f7988f28a5cfe to your computer and use it in GitHub Desktop.
Save Moccine/16993457d96e07c1ed8f7988f28a5cfe to your computer and use it in GitHub Desktop.
How do to include a Js file in js file ?
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