3 ms·
A simple trick to solve nearly all freezing problems: move the computations to a background thread, aka Worker in JS terms.
by akomtu 2y ago
A simple trick to solve nearly all freezing problems: move the computations to a background thread, aka Worker in JS terms.
- aabhay 2y agoAnother trick — use comlink (https://github.com/GoogleChromeLabs/comlink https://github.com/GoogleChromeLabs/comlink) to make the worker thread into essentially an async API of your local methods.