Description
Parallel DOM (PDom) is a JavaScript library for moving heavy DOM work off a web app's main thread, so that a slow component does not freeze the rest of the page. It runs code in a sandboxed iframe that gets its own CPU process for JavaScript and DOM manipulation, effectively giving an app several DOM threads. The API is meant to plug into existing code, and it can run any React component in a parallel DOM, passing props and callbacks as usual. For security, code always executes in a secure context inside the sandboxed iframe wrapper, and the FAQ explains how modern browser security features make this approach safe. You can use the hosted pdom.dev domain or self-host it, either with a preconfigured Vercel template or by building the GitHub repository and serving the output yourself, which needs an Origin-Agent-Cluster header and a wildcard subdomain.…
Highlights
- Runs heavy DOM work in a separate process
- Runs React components in a parallel DOM
- Sandboxed iframe for secure execution
- Self-host via Vercel template or your own server
Ratings & Reviews
No ratings yet
Be the first to rate Parallel DOM.
People also visit
Happy Dom
A JavaScript implementation of a web browser without its graphical user
Trusted Types
A browser API to prevent DOM-Based Cross Site Scripting in modern web

pixijs-environments
Running PixiJS v8 outside a standard browser: Web Workers, OffscreenCanvas
Parallel DOM FAQ
What does Parallel DOM do?
It lets you move heavy DOM operations into a separate sandboxed iframe with its own CPU process, so they don't block the main page.
Does it work with React?
Yes. You can run any React component in a parallel DOM and pass props and callbacks as usual.
Is it secure?
Code always runs in a secure context inside a sandboxed iframe wrapper.
Can I host it myself?
Yes. Use the Vercel template, or clone github.com/pdomdev/pdom, build it and serve the dist folder with the Origin-Agent-Cluster header and a wildcard subdomain.
What are the best Parallel DOM alternatives?
Popular alternatives to Parallel DOM include Happy Dom, BrowserPod and Trusted Types. See all Parallel DOM alternatives




