More folks should consider using the SharedWorker API in their app. Especially if you have particularly heavy initializing code.

E.g. instead of Element loading everything from scratch each time you open it in a tab, it could have the bulk of the resources shared across tabs in a worker and have speedier inits that don't block the render thread.

developer.mozilla.org/en-US/do

@mauve I still need to learn how this works, thinking it could bring good wins to Mastodon & others. cc @renchap

Follow

@thisismissem @renchap it's similar to how desktop gui apps can have separate "main threads" with all their logic and renderer threads that talk to the main thread to get data in and out.

Sign in to participate in the conversation
Mauvestodon

Escape ship from centralized social media run by Mauve.