Partytown

An open-source library that moves third-party scripts into a web worker so they do not slow down the main thread.

In more detail

It forwards the scripts' DOM access to the main thread behind the scenes. next/script's worker strategy is built on it.

Related terms

Taught in

References