3 ms·
> the main thread would be mostly idle, only applying the real dom manipulations, so there are no background tasks slowing it down? The thing is, applying DOM
by nicoburns 7y ago
> the main thread would be mostly idle, only applying the real dom manipulations, so there are no background tasks slowing it down?
The thing is, applying DOM updates is the biggest bottleneck in almost every frontend app. And this doesn't sound like it solves that.
- tobiu 7y agoit definitely is the bottleneck, which is the reason we should move all other possible tasks out of main. in this (neo.mjs) case main applies the deltas, forwards dom events to the app worker & serves as a message bus as long as workers can not directly communicate. nothing more.