---
type: podcast
authors:
  - alex-patterson
  - brittney-postma
episode: 28
recording_date: May 11, 2022 10:00 AM
season: 2
published: published
podcast: CodingCat.dev
chapters_done: true
cloudinary_convert: false
cover: https://media.codingcat.dev/image/upload/v1655313684/main-codingcatdev-photo/nextjs-script-with-partytown.jpg
devto: https://dev.to/codingcatdev/228-nextjs-script-with-partytown-web-workers-1ll6
excerpt: Adam and Houssein talk with Alex all about how third party script are killing the web. How Partytown fixes the third party script problem. Then we show how Partytown Script is used in Next.js
guests:
  - adam-bradley
  - houssein-djirdeh
hashnode: https://hashnode.codingcat.dev/podcast-nextjs-script-with-partytown-web-workers
picks:
  [
    {
      author: 'alex-patterson',
      name: 'VSCode Live Share',
      site: 'https://code.visualstudio.com/learn/collaboration/live-share'
    },
    {
      author: 'alex-patterson',
      name: 'Builder.io Perf Tool',
      site: 'https://perf.builder.io/?q=eyJpZCI6ImJ0dTd3bzJoaWt5IiwidGl0bGUiOiJGaW5kaW5nIG51bWJlcnMgaW4gYW4gYXJyYXkiLCJiZWZvcmUiOiJjb25zdCBkYXRhID0gWy4uLkFycmF5KDEwMDApLmtleXMoKV0iLCJ0ZXN0cyI6W3sibmFtZSI6IkZpbmQgaXRlbSAxMDAiLCJjb2RlIjoiZGF0YS5maW5kKHggPT4geCA9PSAxMDApIiwib3BzIjoyMDMzNjAsInJ1bnMiOltdfSx7Im5hbWUiOiJGaW5kIGl0ZW0gMjAwIiwiY29kZSI6ImRhdGEuZmluZCh4ID0%2BIHggPT0gMjAwKSIsIm9wcyI6OTk1NjAsInJ1bnMiOltdfSx7Im5hbWUiOiJGaW5kIGl0ZW0gNDAwIiwiY29kZSI6ImRhdGEuZmluZCh4ID0%2BIHggPT0gNDAwKSIsIm9wcyI6NTUzNTAsInJ1bnMiOltdfSx7Im5hbWUiOiJGaW5kIGl0ZW0gODAwIiwiY29kZSI6ImRhdGEuZmluZCh4ID0%2BIHggPT0gODAwKSIsIm9wcyI6Mjc2NjAsInJ1bnMiOltdfV0sInVwZGF0ZWQiOiIyMDIzLTA1LTIwVDE3OjM4OjMwLjQxN1oifQ%3D%3D'
    },
    { author: 'brittney-postma', name: 'Synergy', site: 'https://symless.com/synergy' },
    {
      author: 'brittney-postma',
      name: 'Partytown, Qwik, Mitosis with Steve Sewell on devtools FM',
      site: 'https://www.audible.com/pd/Steve-Sewell-Builderio-partytown-Qwik-mitosis-Podcast/B09Y11ZJ45'
    },
    {
      author: 'brittney-postma',
      name: 'Partytown with Adam Bradley Modern Web Podcast',
      site: 'https://podcasts.apple.com/ca/podcast/s09e01-modern-web-podcast-partytown-with-adam-bradley/id1084236187?i=1000541597572'
    }
  ]
slug: nextjs-script-with-partytown-web-workers
sponsors:
  - builder-io
spotify: https://open.spotify.com/episode/1EhI4ZFjwmD1Tv5mGsX3TG?si=Cqg0kJdXTO-0CnKuGQokMA
start: June 22, 2022
title: Next.js Script with Partytown Web Workers
youtube: https://www.youtube.com/watch?v=Db-X9PWuSAg
---

## Questions

1. How would you best describe Partytown, and the issue it is trying to solve?
2. Can you explain what the heck a Service worker is and how XHR gets involved in the process?
3. [Builder.io Performance Insights Tool](https://www.builder.io/c/performance-insights)
4. [Next.js RFC for Partytown](https://github.com/vercel/next.js/discussions/31517)
5. What other frameworks work with Partytown?
6. Why is this important to have [Partytown in Next.js](https://nextjs.org/docs/basic-features/script#off-loading-scripts-to-a-web-worker-experimental)?
