News for hackers. Stuff that matters.
Re:Asm-dom, a minimal WebAssembly virtual DOM to build C++ SPA by austincheney on Monday March 16, 2020 @10:00AM (#22592737)
> Sometimes doing a tiny change can cause the entire page to re-render.

What kind of change? If you are talking about repainting the visual CSS rendering to the viewport that isn't the DOM. That is your hardware. This is why modern browsers use GPU acceleration.

Changes to the DOM are changes to the DOM tree and the markup represented by that tree. These changes can have second order performance implications if the change to the tree results in adding/removing many nodes of it results in execution of events, which is outside the DOM, that result in the execution of additional DOM instructions.

> If you render your templates directly to the DOM you might start a rerendering chain that needlessly wastes performance.

I have never encountered this. Could you provide an example?

There are no comments on this comment yet.