@braneproject/partytown
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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.

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. See the example page and test pages for some live demos.

Getting Started

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

Docs

Community

Related Projects

  • 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 ❤️ by Builder.io

Package Sidebar

Install

npm i @braneproject/partytown

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

307 kB

Total Files

29

Last publish

Collaborators

  • cometkim