John J Barton wrote:
Brendan, your argument above makes it sound like
import x from "Bar.js"
does not block and thus would not starve the UI rendering. How can
that be?
While parsing (which can be done very early, as TCP segments come in,
with some assembly across boundaries required), modules are prefetched.
This is before anything in the containing <script> element runs.
Browsers already do speculative script pre-fetching (parse ahead in HTML
even if blocked on a loading element, start loading further scripts,
bail if any have effects that would be out of order).
/be
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss