Hacker News new | past | comments | ask | show | jobs | submit login

A simple trick to solve nearly all freezing problems: move the computations to a background thread, aka Worker in JS terms.



Another trick — use comlink (https://github.com/GoogleChromeLabs/comlink) to make the worker thread into essentially an async API of your local methods.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: