해결 방법은 다음 방법을 사용하여 js를 로드하세요.
var loadScript = function(url, callback, charset){
var head = document.getElementsByTagName('head')[0]
var script = document.createElement('script')
if(charset){
script.charset = charset;
}
script.src = url
if(!callback){
return; onload = script.onreadystatechange = function(){
if(!this.readyState || this.readyState==='loaded' || this.readyState==='complete'){
callback();
}
}
head.appendChild(스크립트)
;