Comment by DarkNova6
4 days ago
I don't get it why you need direct DOM access. Just wrap it in JS calls. It's not like current websites are super fast and creating a wrapper will slow it down unnecessarily.
4 days ago
I don't get it why you need direct DOM access. Just wrap it in JS calls. It's not like current websites are super fast and creating a wrapper will slow it down unnecessarily.
The article cites the research that JS wrapping of DOM calls slows things down by 50%.
Just to be clear: It slows down the overhead of a function call by 50%. It doesn't slow down the function implementation which takes a very large percentage of the time.
Direct DOM access from WASM is faster:
https://hacks.mozilla.org/wp-content/uploads/2026/02/Screens...
Can I just say fuck JavaScript so we can stop mentioning this time and time again ?