xxxxxxxxxx
const script = document.createElement("script")
script.src = "script.js"
script.async = true
document.head.appendChild(script)
xxxxxxxxxx
const script = document.createElement("script")
script.src = "script.js"
script.onload = function(){
//do something
}
document.head.appendChild(script)