Turns out if you remove slow code things go faster... Just have to find the slow code

Also I recommend anyone who is serious about web development to get familiar with the performance monitoring tools in Chrome / FireFox. If you know how to use them you can quickly find the one method that is causing things to lag

Reply to this note

Please Login to reply.

Discussion

That’s the one thing I haven’t paid as much attention to. I’ll start looking into that!

I firmly believe that any decent web developer should also know the event loop. If you know how tasks and micro-tasks work, you can really benefit from it. You should also know the ways, how to move computation-intense stuff into workers, etc.

What I'm trying to say is that optimizing the main-thread is only half of the story.

Maybe replace the slow code with wasm?