Use web workers to run JavaScript off the browser's main thread  |  Articles  |  web.dev

The browser's main thread is incredibly overworked. By using web workers to shift code off the main thread, you can significantly improve your app's reliability and user experience.