If a web page loads a large JS file (1+ MB), e.g., via <script defer>, does this mean that during the *execution* of that file all interaction with the page (incl. scrolling) is completely blocked?
-
-
Replying to @simevidas
Yes, script execution is a task that will be queued and run on the main thread. That’s why things like code splitting are so important.
1 reply 0 retweets 9 likes
Replying to @philwalton @simevidas
Note that this isn't *quite* as bad as it used to be in Chromium thanks to off-thread parsing, which rolled out over the past year: https://v8.dev/blog/background-compilation … ...but for a 1MiB pile of script, you'll still have a residual compile step on the main thread + work eval step does
9:12 AM - 5 Sep 2019
0 replies
0 retweets
5 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.