3 ms·
All DOM update and layout algorithms are O(N) complex (at best). So as less DOM elements you have as more responsive your UI is. As an ultimate solution - to r
by c-smile 8y ago
All DOM update and layout algorithms are O(N) complex (at best). So as less DOM elements you have as more responsive your UI is.
As an ultimate solution - to remove DOM at all and replace it by <canvas>. Minimization of updates is developer's business in this case. Presumably he/she will be able to do it better other than to walk through all DOM elements while handling, say this:
html:hover span { color:red; }
- nine_k 8y agoYou only need as many DOM nodes as it takes to cover the viewport. You can style them such a way that updates do not cause re-layout, except for auto-sized cells.