main thread

9 moment(s) that assert this concept — showing 1–9 of 9

strong3 independent sources
↣ how this spread over time →
provenance — click a node to open its encoding unit
[1] Chrome[2] JSConf[3] JSConf[4] JSConf[5] JSConf[6] JSConf[7] JSConf[8] JSConf[9] Baptiste
showing 9 of 9 moments
Chrome for Developers · youtube · en
1Since Chrome 61, raw JavaScript parsing speed on real-world websites has doubled and 40% of parsing and compilation work is now off the main thread.
“Since Chrome 61, we’ve doubled our raw JavaScript parsing speed as measured on real-world websites. On top of that we’ve managed to move up to 40% of parsing and compilation work off of the main thread so that it no longer blocks website startup. 40%!”
spoken · 177s · 2019-05-09
JSConf · youtube · en-US
2The main thread in web browsers determines the deterministic order of JavaScript execution, DOM rendering, and rendering of the page.
“And this means that the bulk of your stuff on the web has a deterministic order.”
spoken · 189s · 2018-02-09
JSConf · youtube · en-US
3User interactions become noticeably delayed when a task on the main thread takes over 200 milliseconds to complete.
“then it becomes really noticeable because it's blocked loads of other things, like it blocks rendering, it blocks interaction”
spoken · 219s · 2018-02-09
JSConf · youtube · en-US
4Humans naturally operate with multiple concurrent processes, unlike web applications which rely on a single main thread for execution.
“As humans we don't really have a main thread.”
spoken · 243s · 2018-02-09
JSConf · youtube · en-US
5The setTimeout method, when invoked, waits ms milliseconds and invokes a callback, but this specification runs on the main thread and blocks other operations.
“The setTimeout method, when invoked, must run the following steps: Wait ms milliseconds, invoke callback. Done.”
spoken · 342s · 2018-02-09
JSConf · youtube · en-US
6To avoid blocking, the event loop queues tasks to run on a separate thread, allowing parallel execution while ensuring callbacks eventually return to the main thread.
“We run the steps in parallel which is magic spec speak for get off the main thread or get off this thread and run this stuff kind of at the same time as other stuff.”
spoken · 376s · 2018-02-09
JSConf · youtube · en-US
7JavaScript callbacks invoked from non-main threads must eventually be scheduled to run on the main thread to prevent race conditions and ensure DOM consistency.
“we queue a task and we queue a task to get back on to the main thread at some point and now we're calling JavaScript on the thread where JavaScript lives, so it all works.”
spoken · 402s · 2018-02-09
JSConf · youtube · en-US
8The event loop defers rendering updates to the next iteration, allowing ongoing JavaScript execution to block UI interactions.
“I'll get around to that next time I go around the event loop”
spoken · 571s · 2018-02-09
Baptiste Adrien · youtube · en
9The performance bottleneck in React applications stems from large, synchronous update operations that block the main thread.
“the underlying problem is just that the update is big and it's synchronous so as soon as the react starts rendering it cannot stop”
spoken · 459s · 2018-03-01