javascript dynamicly include another js file
snippet in javascript

javascript dynamicly include another js file

user8727

var script = document.createElement('script');
script.src = "https://www.examplesite/myscript.js";
document.head.appendChild(script);