You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 29, 2021. It is now read-only.
On the other hand, if I import b.js, a.js should execute first.
But what happens if I do both one after the other - import('a.js'), import('b.js').
Should the import of a.js "own" the execution, so that the import of a.js creates promises for the execution of a.js and b.js, and the import of b.js waits on that. This way a.js is not executed until b.js has finished executing ever.
Both graph executions run simultaneously: the load for a.js executes b.js, and the load for b.js executes a.js so they both execute immediately in parallel, and both resolve when both modules have finished executing.
What is specified in Variant B promise refactoring #33 is a third case: the load for a.js executes b.js, and then the load for b.js resolves as soon as b.js has finished executing, but before a.js has finished executing.