You wrap a slow loop in an async function. You sprinkle in await . You tell yourself the page will stay smooth because the work is "async now.

Source: [Dev.to](https://dev.to/mrajaeim/advanced-js-execution-promises-workers-and-comlink-ill)

Sponsored