[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-71254":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":16,"starSnapshotCount":16,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},71254,"partytown","QwikDev\u002Fpartytown","QwikDev","Relocate resource intensive third-party scripts off of the main thread and into a web worker. 🎉","https:\u002F\u002Fpartytown.qwik.dev",null,"TypeScript",13704,450,61,80,0,5,14,42.96,"MIT License",false,"main",[24,25,26,27,28,29,30,31,32,33,34],"3rd-party","3rdparty","analytics","core-web-vitals","dom","javascript","lighthouse","lighthouse-score","performance","web-worker","webworker","2026-06-12 02:02:49","# Partytown 🎉\n\n\u003Cimg width=\"838\" alt=\"Partytown github fit 2x\" src=\"https:\u002F\u002Fuser-images.githubusercontent.com\u002F452425\u002F134568488-f36f4640-9ada-4a78-a969-2b8315cf7f47.png\">\n\n- [Introducing Partytown: Run Third-Party Scripts From a Web Worker](https:\u002F\u002Fdev.to\u002Fadamdbradley\u002Fintroducing-partytown-run-third-party-scripts-from-a-web-worker-2cnp)\n- [How Partytown's Sync Communication Works](https:\u002F\u002Fdev.to\u002Fadamdbradley\u002Fhow-partytown-s-sync-communication-works-4244)\n- [How we cut 99% of our JavaScript with Qwik + Partytown](https:\u002F\u002Fwww.builder.io\u002Fblog\u002Fhow-we-cut-99-percent-js-with-qwik-and-partytown)\n- [Partytown is now in Beta](https:\u002F\u002Fwww.builder.io\u002Fblog\u002Fpartytown-is-now-in-beta)\n\n> A fun location for your third-party scripts to hang out\n\nPartytown is a lazy-loaded library to help relocate resource intensive scripts into a [web worker](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FAPI\u002FWeb_Workers_API), and off of the [main thread](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FGlossary\u002FMain_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.\n\n> Note: Partytown is still in beta and not guaranteed to work in every scenario. Please see our [FAQ](https:\u002F\u002Fpartytown.qwik.dev\u002Ffaq) and [Trade-Off](https:\u002F\u002Fpartytown.qwik.dev\u002Ftrade-offs) sections for more info.\n\nThe 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:\u002F\u002Fdevelopers.google.com\u002Fweb\u002Ffundamentals\u002Fperformance\u002Fcritical-rendering-path) should be moved to a web worker. Main thread performance is, without question, more important than web worker thread performance.\n\n- [Getting Started](https:\u002F\u002Fpartytown.qwik.dev\u002Fgetting-started)\n- [Integrations](https:\u002F\u002Fpartytown.qwik.dev\u002Fintegrations)\n- [Configuration](https:\u002F\u002Fpartytown.qwik.dev\u002Fconfiguration)\n- [Releases](https:\u002F\u002Fgithub.com\u002FBuilderIO\u002Fpartytown\u002Freleases)\n- [FAQs](https:\u002F\u002Fpartytown.qwik.dev\u002Ffaq)\n\n![Without Partytown and With Partytown: Your code and third-party code compete for main thread resources](https:\u002F\u002Fuser-images.githubusercontent.com\u002F452425\u002F152393346-6f721a4f-3f66-410a-8878-a2b49e24307f.png)\n\n## Community\n\n- [@QwikDev](https:\u002F\u002Ftwitter.com\u002FQwikDev)\n- [@Builderio](https:\u002F\u002Ftwitter.com\u002Fbuilderio)\n- [Local Development](https:\u002F\u002Fgithub.com\u002FBuilderIO\u002Fpartytown\u002Fblob\u002Fmain\u002FCONTRIBUTING.md#local-development)\n- [For Plugin Authors \u002F Developers](https:\u002F\u002Fgithub.com\u002FBuilderIO\u002Fpartytown\u002Fblob\u002Fmain\u002FCONTRIBUTING.md#plugin-authors-developers)\n\n## Related Projects\n\n- [Qwik](https:\u002F\u002Fgithub.com\u002FBuilderIO\u002Fqwik): 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.\n- [Mitosis](https:\u002F\u002Fgithub.com\u002FBuilderIO\u002Fmitosis): Write components once, run everywhere. Compiles to Vue, React, Solid, Angular, Svelte, and more.\n- [Builder](https:\u002F\u002Fgithub.com\u002FBuilderIO\u002Fbuilder): Drag and drop page builder and CMS for React, Vue, Angular, and more.\n\n\u003Cbr>\n\u003Cbr>\n\u003Cp align=\"center\">\n   \u003Ca href=\"https:\u002F\u002Fwww.builder.io\u002Fm\u002Fdevelopers\">\n      \u003Cpicture>\n         \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fuser-images.githubusercontent.com\u002F844291\u002F230786554-eb225eeb-2f6b-4286-b8c2-535b1131744a.png\">\n         \u003Cimg width=\"250\" alt=\"Made with love by Builder.io\" src=\"https:\u002F\u002Fuser-images.githubusercontent.com\u002F844291\u002F230786555-a58479e4-75f3-4222-a6eb-74c5af953eac.png\">\n       \u003C\u002Fpicture>\n   \u003C\u002Fa>\n\u003C\u002Fp>\n","Partytown 是一个用于将资源密集型的第三方脚本从主线程迁移到 Web Worker 中执行的库。其核心功能在于通过将非关键路径上的第三方脚本来异步加载到 Web Worker 上运行，从而减轻主线程负担，提高网页性能和响应速度。该项目采用 TypeScript 编写，支持多种常见第三方服务如分析工具等，并且对 Lighthouse 评分有显著提升作用。适用于需要优化页面加载时间和交互性能，特别是那些依赖于大量第三方脚本（例如广告、追踪代码）的网站或应用中使用。需要注意的是，当前 Partytown 处于 Beta 阶段，在某些特定情况下可能无法正常工作，请参考官方文档了解更多信息。",2,"2026-06-11 03:36:49","high_star"]