1 Repo
Logic for determining which scripts are offloaded to background threads versus main thread execution.
Distinct from Platform Script Execution: Focuses on the filtering logic for script offloading, distinct from general execution environments.
Explore 1 awesome GitHub repository matching development tools & productivity · Execution Filters. Refine with filters or upvote what's useful.
Partytown is a library designed to offload resource-intensive third-party scripts to background web workers. By executing these scripts outside of the main thread, it prevents them from blocking the critical rendering path, thereby maintaining a responsive user interface and improving overall page load performance. The project functions as a web worker proxy library that synchronizes browser interfaces between the main thread and background environments. It uses proxy-based access and synchronous messaging to replicate global objects like the window and document, allowing scripts to interact
Selects which scripts run within a background worker and which remain on the main thread to balance performance and compatibility.