Re:Virtual DOM is pure overhead (2018)
by madhadron on Tuesday June 29, 2021 @02:14PM
(#27679619)
In my personal experiments, I ended up using document fragments. I wasn't doing FRP, just classic MVC, but a view (which was a JavaScript object) had a reference to the DOM elements it was responsible for. If it needed to replace them, it created a document fragment, did anything that needed to be done in there (including having children redraw) and then swapped out that fragment. This gave very nice performance.
[ Parent
| on HN ]
There are no comments on this comment yet.