# Partytown

[BASE product page](<https://base.akulich.dev/en/library/partytown/>) · [Resource](<https://github.com/QwikDev/partytown>)

ID: partytown · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

A runtime for moving third\-party web scripts to a worker: it helps offload a site's main thread while preserving required browser interactions\.

## Type

Web framework / library

## Entry type

library

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/partytown/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/partytown/#resource-access>)

Code and local use under MIT\.

## [Paid features and costs](<https://base.akulich.dev/en/library/partytown/#resource-access>)

Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Access and limitations](<https://base.akulich.dev/en/library/partytown/#resource-access>)

Code and local use under MIT\. Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Use cases](<https://base.akulich.dev/en/library/partytown/#resource-tasks>)

- Move suitable third\-party scripts to a worker
- Connect worker execution and test the scripts' required browser interactions

## Category IDs

- frontend

## Subcategory IDs

- frontend\.utilities

## Tags

- Partytown
- web
- Development

## Also known as

- QwikDev/partytown
- partytown
- party\-town

## [Selection purpose](<https://base.akulich.dev/en/library/partytown/#resource-selection>)

Move suitable third\-party scripts to a worker

## [Choose this when](<https://base.akulich.dev/en/library/partytown/#resource-selection>)

- Move suitable third\-party scripts to a worker
- Connect worker execution and test the scripts' required browser interactions

## [Limitations](<https://base.akulich.dev/en/library/partytown/#resource-selection>)

- Costs and limits of free use: Computing resources, self\-hosting, and external services are paid for separately if used\.
- Terms of use: MIT for the code; dependencies have separate licenses\.
- event\.preventDefault in a worker handler does not cancel an already completed main thread action\. Cross\-origin iframes created by Partytown scripts have separate cookie/storage restrictions; scripts lacking required CORS headers need proxy configuration\.

## [Questions before use](<https://base.akulich.dev/en/library/partytown/#resource-faq>)

### What can you use for free in Partytown?

Code and local use under MIT\.

### What additional costs might arise with Partytown?

Computing resources, self\-hosting, and external services are paid for separately if used\.

### What terms of use matter for Partytown?

MIT for the code; dependencies have separate licenses\.

### How do you get started with Partytown?

Identify page scripts that load the main thread\. Connect worker execution and test the scripts' required browser interactions\. Add real data and error handling; check the production build\.

### Which third\-party scripts suit Partytown, and what limits arise?

Partytown moves selected resource\-intensive scripts into a worker\. The official guide considers event handlers with background data sending suitable, while scripts with extensive DOM insertion and complex interfaces are less suitable\. Enable scripts one at a time; cross\-thread DOM operations are intentionally delayed and batched\.

## Sources for the selection guide

- [https://github\.com/QwikDev/partytown](<https://github.com/QwikDev/partytown>)
- [https://raw\.githubusercontent\.com/QwikDev/partytown/HEAD/README\.md](<https://raw.githubusercontent.com/QwikDev/partytown/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/QwikDev/partytown/HEAD/LICENSE](<https://raw.githubusercontent.com/QwikDev/partytown/HEAD/LICENSE>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)
- [https://partytown\.qwik\.dev/trade\-offs/](<https://partytown.qwik.dev/trade-offs/>)

## [Possible workflow](<https://base.akulich.dev/en/library/partytown/#resource-scenario>)

Move suitable third\-party scripts to a worker\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- Web application source code and the intended workflow\.
- The project's framework and runtime version\.

## Steps

1. Identify page scripts that load the main thread\.
2. Connect worker execution and test the scripts' required browser interactions\.
3. Add real data and error handling; check the production build\.

## Check your result

- The workflow works after a page refresh and with invalid data\.
- The bundle, server rendering, and supported browsers suit the project\.

## [License](<https://base.akulich.dev/en/library/partytown/#resource-license>)

MIT for the code; dependencies have separate licenses\.

## License explanations for the specified scope

### MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed\-source commercial product\. When sharing copies or substantial portions of the code, retain the license text and copyright notice\. You do not need to open\-source your entire project; the author provides no warranties\.

[License terms](<https://opensource.org/license/mit>)

## [Sources](<https://base.akulich.dev/en/library/partytown/#resource-sources>)

- [Official source](<https://github.com/QwikDev/partytown>)
- [Official source](<https://raw.githubusercontent.com/QwikDev/partytown/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/QwikDev/partytown/HEAD/LICENSE>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)
- [Official source](<https://partytown.qwik.dev/trade-offs/>)

## Editorial review date

2026\-10\-06

## Editorial review scope

The purpose, current repository license, and separate terms for code, services, and models have been reviewed\. The product was not run, and no security audit was performed\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
