TypeScript MIT

partytown

Relocate resource intensive third-party scripts off of the main thread and into a web worker. 🎉

Q

QwikDev

Dernière activité 7 sept. 2026
QwikDev/partytown

13,8 k

étoiles

455

forks

0

issues ouvertes

3rd-party3rdpartyanalyticscore-web-vitalsdomjavascriptlighthouselighthouse-scoreperformanceweb-workerwebworker

Ce README est souvent en anglais.

Partytown 🎉

Partytown github fit 2x

A fun location for your third-party scripts to hang out

Partytown is a lazy-loaded library to help relocate resource intensive scripts into a web worker, and off of the main thread. Its goal is to help speed up sites by dedicating the main thread to your code, and offloading third-party scripts to a web worker.

Note: Partytown is not guaranteed to work in every scenario. Please see our FAQ and Trade-Off sections for more info.

The philosophy is that the main thread should be dedicated to your code, and any scripts that are not required to be in the critical path should be moved to a web worker. Main thread performance is, without question, more important than web worker thread performance.

Without Partytown and With Partytown: Your code and third-party code compete for main thread resources

Community

  • Qwik: An open-source framework designed for best possible time to interactive, by focusing on resumability of server-side-rendering of HTML, and fine-grained lazy-loading of code.
  • Mitosis: Write components once, run everywhere. Compiles to Vue, React, Solid, Angular, Svelte, and more.
  • Builder: Drag and drop page builder and CMS for React, Vue, Angular, and more.


Made with love by Builder.io

Projets similaires

Partytown integration for Nuxt. Run third-party scripts from a web worker.

TypeScriptnuxtnuxt-modulepartytown
Nnuxt-modules
355 étoiles11

Automated auditing, performance metrics, and best practices for the web.

JavaScriptauditbest-practiceschrome-devtools
GGoogleChrome
30,8 k étoiles9,8 k

Scan and fix React performance issues

TypeScriptjavascriptreactreact-dom
Aaidenybai
21,9 k étoiles392