I'd just like to add that I recently launched js-coroutines which seeks to split up sorts, stringifies, compression and your own heavy functions over multiple frames using coroutines and requestIdleCallback. It works pretty well for circumstances where worker threads are hard to achieve or just too much work for an edge case.
My article on how that works.
Pretty neat! 👍
I think the pattern of offloading state computations to background threads is great for highly interactive applications.
In particular, I'm sure many game developers in the Web space will find your library quite useful.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.