Hacker News new | ask | show | jobs
by LordHeini 484 days ago
That is not the case anymore.

React and many other SPA frameworks use an additional virtual DOM which gets mapped onto the real DOM. This used to be faster 10 years ago and allowed for a unified interface.

Any addon manipulating the DOM forces the virtual DOM to go out of sync thus crashing the app.

As shown be the likes of Svelte, the virtual DOM is just legacy modern browsers are fast enough to get by without.

2 comments

Virtual DOM or not doesn't matter, even Svelte has the potential to be disrupted by these Google translate shenanigans since it manipulates the DOM.

Actually it seems they got hit also, https://github.com/sveltejs/svelte/issues/15090

It’s not that modern browsers are faster - Svelte is a different approach and figures out how to update at compile time rather than using a runtime virtual DOM. 10 years ago it would also have been faster