mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-13 12:13:10 +00:00
feat: assetLoader loda scripts with async=false
This commit is contained in:
parent
f0d8b852ef
commit
f6ad4a157d
@ -29,9 +29,11 @@ export function load(url: string) {
|
|||||||
// node = null;
|
// node = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// node.async = true;
|
|
||||||
node.src = url;
|
node.src = url;
|
||||||
|
|
||||||
|
// `async=false` is required to make sure all js resources execute sequentially.
|
||||||
|
node.async = false;
|
||||||
|
|
||||||
document.head.appendChild(node);
|
document.head.appendChild(node);
|
||||||
|
|
||||||
return i.promise();
|
return i.promise();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user