<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/welcome-to-partytown-l6dcf6mrp" -->

---
title: Welcome To Partytown | daily.dev
description: Partytown is a lazy-loaded library to help relocate resource intensive scripts into a web worker, and off of the main thread. The main thread should be...
canonical: https://daily.dev/posts/welcome-to-partytown-l6dcf6mrp
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Welcome To Partytown | daily.dev
og:description: Partytown is a lazy-loaded library to help relocate resource intensive scripts into a web worker, and off of the main thread. The main thread should be...
og:url: https://daily.dev/posts/welcome-to-partytown-l6dcf6mrp
og:image: https://api.daily.dev/og/posts/l6dCF6MRP.png
og:image:alt: Welcome To Partytown
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Welcome To Partytown

**[Changelog](https://daily.dev/sources/changelog)** · 3 min read · 43 upvotes · 2 comments

## Summary

Partytown is a lazy-loaded library to help relocate resource intensive scripts into a web worker, and off of the main thread. 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.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://partytown.builder.io/>

## Community discussion

Top comments from developers on daily.dev.

**@thecoverliker** · 0 upvotes

> Great article! BTW crazy cover

**@dailydevtips** · 0 upvotes

> Great to finally see a tool take care of this annoying third party load issue 🎉

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#performance](https://daily.dev/tags/performance), [#dom](https://daily.dev/tags/dom)

[View this post on daily.dev](https://daily.dev/posts/welcome-to-partytown-l6dcf6mrp)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Welcome To Partytown","url":"https://daily.dev/posts/welcome-to-partytown-l6dcf6mrp","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/welcome-to-partytown-l6dcf6mrp"},"datePublished":"2022-07-28T20:11:44.551Z","dateModified":"2022-07-28T20:11:44.550Z","description":"Partytown is a lazy-loaded library to help relocate resource intensive scripts into a web worker, and off of the main thread. The main thread should be...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f654f6e9f306912377b5bae1ce58c4df","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f654f6e9f306912377b5bae1ce58c4df","isAccessibleForFree":true,"articleSection":"Changelog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Changelog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f65a74bcb028447aa606f06695d607d3","url":"https://daily.dev/sources/changelog"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/welcome-to-partytown-l6dcf6mrp","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":43},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"javascript,performance,dom","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Changelog","item":"https://daily.dev/sources/changelog"},{"@type":"ListItem","position":3,"name":"Welcome To Partytown"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/welcome-to-partytown-l6dcf6mrp","comment":[{"@type":"Comment","text":"Great article! BTW crazy cover","datePublished":"2022-07-31T06:29:12.590Z","url":"https://daily.dev/posts/l6dCF6MRP#c-zcjSE9mQk","author":{"@type":"Person","name":"TheCoverLiker","url":"https://daily.dev/thecoverliker","image":"https://media.daily.dev/image/upload/v1681623072/avatars/avatar_sDzCovimjL.jpg"}},{"@type":"Comment","text":"Great to finally see a tool take care of this annoying third party load issue 🎉","datePublished":"2022-07-29T05:40:11.375Z","url":"https://daily.dev/posts/l6dCF6MRP#c-y85gsS5ul","author":{"@type":"Person","name":"Chris Bongers","url":"https://daily.dev/dailydevtips","image":"https://media.daily.dev/image/upload/s--9gxFz1e7--/f_auto/v1705902590/avatars/avatar_JUNiIGCV-?_a=BAMAMiZW0"}}]}
```

