partytown
benzene
Our great sponsors
partytown | benzene | |
---|---|---|
64 | 2 | |
12,572 | 162 | |
1.9% | - | |
8.4 | 0.0 | |
6 days ago | over 1 year ago | |
TypeScript | TypeScript | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
partytown
-
Lessons from open-source: Partytown โ a library that uses web worker to run third party scripts.
Partytown is a lazy-loaded library to help relocate resource intensive scripts into a_ web worker, and off of the main 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. โ Source
Partytown is an open source library built by Builder.io to relocate resource intensive third-party scripts into a web worker so that main thread is dedicated to your code.
-
Frontend development roadmap
Research Frameworks and Tools - Make sure to do your research on your current javascript framework and find out if it has a superset (eg React ->Nextjs, Svelte -> Sveltekit, Vue->Nuxtjs). They often come with many improvments and optimizations out of the box. There are also tools like Partytown which can vastly improve performance in some specific cases
-
Interaction to Next Paint (INP)
has anyone had any luck with partytown?
- [Rant] If I get sent one more report about pages performing poorly I'm going to lose my mind....
-
How To Embed Tweets Without a Performance Penalty
To get good performance, third-party scripts need to send HTML and delay the execution of JavaScript for as long as possible. When the site starts up, there is always some amount of JavaScript that needs to run on the main thread, which is the bottleneck. Unfortunately, third-party scripts' current status quo is that each adds even more JavaScript to the startup cost. Some tools such as Partytown try to help with this, but overall this is not a solved problem. Third-party script providers should strive to improve.
-
Does anyone else experience pure ecstasy when they get 100 on Lighthouse? ๐ฉ
Partytown
-
Concurrent.js now supports Deno
https://partytown.builder.io/ I think it lets you (effectively) write code that needs to access the DOM or main thread but then have that code run from a web worker without any modification (I.e. it figures out how to make that work for you)
-
Performance scores for Google Lighthouse/Insights seem to be very inaccurate
If you're using a tag manager and other marketing scripts, check Partytown to run them from a web worker without blocking the main thread.
benzene
-
Does Apollo GraphQL cost money to use in production? And other beginner questions about GraphQL
If you want a lower level graphql server https://graphql-helix.vercel.app/ or https://benzene.vercel.app/ might be worth checking out.
- Benzene: Fast, minimal, agnostic GraphQL Libraries
What are some alternatives?
parallel.js - Easy multi-core processing utilities for Node.
comlink - Comlink makes WebWorkers enjoyable.
Angular - Deliver web apps with confidence ๐
Next.js - The React Framework
qwik - Instant-loading web apps, without effort
mitosis - Write components once, run everywhere. Compiles to React, Vue, Qwik, Solid, Angular, Svelte, and more.
astro - The web framework for content-driven websites. โญ๏ธ Star to support our work!
web-worker-hooks - React hooks for running code inside web workers without needing to eject CRA apps.
threads.js - ๐งต Make web workers & worker threads as simple as a function call.
builder - Drag and drop headless CMS for React, Vue, Svelte, Qwik, and more
worker-dom - The same DOM API and Frameworks you know, but in a Web Worker.
github-vsc - ๐ Launch VSCode dev environment in your browser.