4 ms·
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
by DarkNova6 4mo 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.
- AndrewDucker 4mo agoThe article cites the research that JS wrapping of DOM calls slows things down by 50%.
- discreteevent 4mo agoJust 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.
- thefounder 4mo agoCan I just say fuck JavaScript so we can stop mentioning this time and time again ?
- breve 4mo agoDirect DOM access from WASM is faster: https://hacks.mozilla.org/wp-content/uploads/2026/02/Screenshot-2026-02-25-at-2.22.23-PM-1536x1018.png https://hacks.mozilla.org/wp-content/uploads/2026/02/Screens...