mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 19:52:51 +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.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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user