Since JavaScript is single-threaded, developers cannot take advantage of the multiple CPU cores available on most devices. To address this challenge, Web Workers were introduced to allow developers to run code in background threads. While major browsers have supported Web Workers for about ten years, adoption has been slow due to its complex implementation. Partytown attempts to simplify the use of Web Workers by providing a simple API to address a specific problem – third-party scripts like Google Analytics, Facebook Pixel, Mixpanel, etc. These scripts are essential for modern web applications, as they allow companies to track usage, run AB tests, and serve ads—but they come at a performance cost. By offloading these non-critical scripts to Web Workers, Partytown can improve the performance of web applications without interrupting the normal flow of the application and with minimal developer involvement. Installing Partytown is a two-step process. First, developers must install and integrate the library into their build process. Partytown provides a set of short integration tutorials for most major JavaScript frameworks, including React and Angular. Second, developers must flag the relevant third-party scripts that Partytown will handle. This is done by modifying the type of the script tag to type=”text/partytown” i.e