Skip to content

Comment on Everything about Google Translate crashing React (and other web apps)parent

Comments

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.

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

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.