动态插入的script 默认为async

161 阅读1分钟

资料:developer.mozilla.org/en-US/docs/…

重点:To request script-inserted external scripts be executed in the insertion order in browsers where the document.createElement("script").async evaluates to true (such as Firefox 4), set async="false" on the scripts you want to maintain order.