4 ms·
I don't like this. It must be slow and bloated because it is a DOM written in JS rather than native optimized DOM implementation. And why would anyone need that
by codedokode 8y ago
I don't like this. It must be slow and bloated because it is a DOM written in JS rather than native optimized DOM implementation. And why would anyone need that?
- ioulian 8y agoCorrect me if I'm wrong, but if you work with DOM, modify/read properties, they lead to DOM trashing and re-rendering. If you do this 100 times per event handler, it will become slow. If you do all that work in a worker and then only update the real DOM once, it will be much faster. Render/paint is the slowest part in a JS application.