3 ms·
It could be useful to have exclusive access to portions of the DOM, which would also allow most of the performance boosts which come from having them segmented.
by Groxx 16y ago
It could be useful to have exclusive access to portions of the DOM, which would also allow most of the performance boosts which come from having them segmented. That way, a worker could render to a <canvas>, another could render to <audio>, and not have any concurrency issues involving the DOM.
In this setup, the current implementation of workers would simply be that the "main" thread has exclusive access to the entire DOM tree. It could be implemented and dropped in, and existing code would continue to work identically and uninterrupted.
But yes. Access to all DOM? PITA.