Smarter web people: Does parsing JavaScript in a web worker avoid blocking the main thread? Similar to code splitting, could we achieve more significant gains on parse time by splitting non-DOM code into a worker?
-
-
Replying to @natehunzaker
I'm by no means an expert on this, but I believe parse and compile for worker scripts uses the same heuristics as classic scripts. For things above a size threshold that aren't blocking (which a Worker should qualify as), parsing is done on a background thread.
2 replies 0 retweets 7 likes -
Replying to @_developit @natehunzaker
I'm pretty sure parsing/exec of workers never blocks the main thread.
3 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.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.