|
|
|
|
|
by btdiehr
3485 days ago
|
|
Cool! What kind of performance gain does one get by computing the DOM Diffs in a web worker? My understanding is because webworkers you do not have access to the DOM, you still have a single thread doing all the rendering (main thread). |
|
In this demo, all the UI thread is doing is receiving batches of small instructions to update the DOM. Stuff like "change the text content of element #12" (all elements get assigned an ID).
That said, this is just an experiment. I wanted to get a real sense of whether threading was something we should care about for DOM manipulation.