하나의 Javascript 파일을 다른 파일에서로드하려고 시도하지만 지연 후 두 번째 파일을로드하려고합니다. 지연을 위해 무엇을 추가해야합니까?JS 파일에서 JS 파일을 호출 할 때 지연 설정
$(document).ready(function() {
var script = document.createElement('script');
script.src = "https://lib.store.yahoo.net/lib/yhst-136932942155053/BongoCheckout.Yahoo.2.js";
document.getElementsByTagName('body')[0].appendChild(script);
});
https://developer.mozilla.org/en/docs/Web/API/window.setTimeout – Quentin