Js client performance when running intensive tasks can become a headache due to the single threaded nature of javascript.
Some ways to tackle this are:
- web workers
- requestAnimationFrame
- requestIdleCallback
Demo: https://js-perf-example.netlify.com/
Further readings and sources: