Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BuilderIO/partytown
Relocate resource intensive third-party scripts off of the main thread and into a web worker. 🎉
https://github.com/BuilderIO/partytown
3rd-party 3rdparty analytics core-web-vitals dom javascript lighthouse lighthouse-score performance web-worker webworker
Last synced: 2 months ago
JSON representation
Relocate resource intensive third-party scripts off of the main thread and into a web worker. 🎉
- Host: GitHub
- URL: https://github.com/BuilderIO/partytown
- Owner: BuilderIO
- License: mit
- Created: 2021-08-20T17:12:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-30T10:48:46.000Z (12 months ago)
- Last Synced: 2024-01-31T09:57:17.533Z (12 months ago)
- Topics: 3rd-party, 3rdparty, analytics, core-web-vitals, dom, javascript, lighthouse, lighthouse-score, performance, web-worker, webworker
- Language: TypeScript
- Homepage: https://partytown.builder.io
- Size: 20.8 MB
- Stars: 12,357
- Watchers: 68
- Forks: 393
- Open Issues: 122
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome - BuilderIO/partytown - Relocate resource intensive third-party scripts off of the main thread and into a web worker. 🎉 (TypeScript)
- awesome-projects - Partytown - party scripts via webworker (node.js/javascript)
- fucking-awesome-vite - @builder.io/partytown - Relocate resource intensive third-party scripts off of the main thread and into a web worker. (Plugins / Framework-agnostic Plugins)
- awesome-repositories - BuilderIO/partytown - Relocate resource intensive third-party scripts off of the main thread and into a web worker. 🎉 (TypeScript)
- stars - BuilderIO/partytown - Relocate resource intensive third-party scripts off of the main thread and into a web worker. 🎉 (TypeScript)
- awesome-vite - @builder.io/partytown - Relocate resource intensive third-party scripts off of the main thread and into a web worker. (Plugins / Framework-agnostic Plugins)
- jimsghstars - BuilderIO/partytown - Relocate resource intensive third-party scripts off of the main thread and into a web worker. 🎉 (TypeScript)
- awesome-javascript - @builder.io/partytown - party scripts off of the main thread and into a web worker. 🎉 (Packages)
- awesome-javascript - @builder.io/partytown - party scripts off of the main thread and into a web worker. 🎉 (Packages)
README
# Partytown 🎉
- [Introducing Partytown: Run Third-Party Scripts From a Web Worker](https://dev.to/adamdbradley/introducing-partytown-run-third-party-scripts-from-a-web-worker-2cnp)
- [How Partytown's Sync Communication Works](https://dev.to/adamdbradley/how-partytown-s-sync-communication-works-4244)
- [How we cut 99% of our JavaScript with Qwik + Partytown](https://www.builder.io/blog/how-we-cut-99-percent-js-with-qwik-and-partytown)
- [Partytown is now in Beta](https://www.builder.io/blog/partytown-is-now-in-beta)> 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](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API), and off of the [main thread](https://developer.mozilla.org/en-US/docs/Glossary/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 still in beta and not guaranteed to work in every scenario. Please see our [FAQ](https://partytown.builder.io/faq) and [Trade-Off](https://partytown.builder.io/trade-offs) 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](https://developers.google.com/web/fundamentals/performance/critical-rendering-path) should be moved to a web worker. Main thread performance is, without question, more important than web worker thread performance.
- [Getting Started](https://partytown.builder.io/getting-started)
- [Integrations](https://partytown.builder.io/integrations)
- [Configuration](https://partytown.builder.io/configuration)
- [Releases](https://github.com/BuilderIO/partytown/releases)
- [FAQs](https://partytown.builder.io/faq)![Without Partytown and With Partytown: Your code and third-party code compete for main thread resources](https://user-images.githubusercontent.com/452425/152393346-6f721a4f-3f66-410a-8878-a2b49e24307f.png)
## Community
- [@QwikDev](https://twitter.com/QwikDev)
- [@Builderio](https://twitter.com/builderio)
- [Local Development](https://github.com/BuilderIO/partytown/blob/main/CONTRIBUTING.md#local-development)
- [For Plugin Authors / Developers](https://github.com/BuilderIO/partytown/blob/main/CONTRIBUTING.md#plugin-authors-developers)## Related Projects
- [Qwik](https://github.com/BuilderIO/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](https://github.com/BuilderIO/mitosis): Write components once, run everywhere. Compiles to Vue, React, Solid, Angular, Svelte, and more.
- [Builder](https://github.com/BuilderIO/builder): Drag and drop page builder and CMS for React, Vue, Angular, and more.