|
|
|
|
|
by baybal2
1896 days ago
|
|
Multiple edits on the HTML are by far not anywhere near as performance devastating as they were a decade ago. At the moment, the "virtual DOM" approach is actually going against performance optimization. JS frameworks like react, vue, angualr etc effectively replicates a big portion of browser's internal logic for nothing. |
|
The misrepresentation of a virtual DOM as a performance improvement came from two things: people who were comparing virtual DOM code to sloppy unoptimized code which was regenerating the DOM on every change and React fans not wanting to believe their new favorite was a regression in any way (not to be confused with the actual React team who certainly knew how to do real benchmarks and were quite open about limitations).
There’s a line of argument that the extra overhead is worth it if the average developer writes more efficient code than they did with other approaches but I think that’s leaving a lot of room for alternatives which don’t have that much inefficiency baked into the design.