feat: assetLoader loda scripts with async=false

This commit is contained in:
liujuping 2022-04-26 11:49:38 +08:00 committed by LeoYuan 袁力皓
parent f0d8b852ef
commit f6ad4a157d

View File

@ -29,9 +29,11 @@ export function load(url: string) {
// node = null;
}
// node.async = true;
node.src = url;
// `async=false` is required to make sure all js resources execute sequentially.
node.async = false;
document.head.appendChild(node);
return i.promise();