Partytown

Run scripts in a web worker.

Visit website ↗

Console’s review

· Reviewed by David Mytton

What we like

Offloads scripts from the main thread to a separate web worker. Allows third-party scripts to be sandboxed and throttled so the main thread can be dedicated to code you control. Easy to enable on any script via a custom attribute, but known to work well with analytics e.g. Google Tag Manager and support e.g. Intercom. Integrates with major frameworks. Open source.

Tradeoffs

Network tab shows lots of proxied requests, which makes it a bit noisy. Not suitable for UI intensive scripts due to DOM throttling. preventDefault() doesn’t work.

Console is a free weekly newsletter with short reviews of developer tools, covering strengths and tradeoffs. This review reflects our assessment at publication. Read our selection criteria and learn about Console.

Discover your next favorite tool

Independent devtool reviews and the latest betas, in your inbox every Thursday. Free.