Parallel DOM offloads heavy DOM manipulation into sandboxed cross-origin iframes so Chrome and Edge can use separate processes. It offers JavaScript and React APIs with a self-hostable loader.
Overview
Parallel DOM (PDom) is a browser-side library that speeds web apps by running heavy DOM scripts in dedicated processes. It targets pages where DOM manipulation bottlenecks main-thread rendering, such as data visualization or interactive graphics.
The library exposes JavaScript and React APIs. For React, unserializable props such as JSX in props are not supported, while props callbacks work asynchronously. Usage follows a simple plug-in model so existing code can offload selected DOM subtrees.
Under the hood PDom creates a shell iframe on a subdomain, clones the target DOM element, and runs your script inside the isolated frame. Cross-origin isolation gives the iframe its own browser process, and the Origin-Agent-Cluster response header lets multiple PDom instances receive separate subframe processes.
Chrome and Edge are supported; other browsers fall back to single-threaded behavior. You may use the public hosted loader or self-host static assets on Vercel, GitHub Pages, Netlify, or your own static server with wildcard DNS and the Origin-Agent-Cluster header configured.
Key features
- Parallel DOM in isolated iframes
- JavaScript and React APIs
- Origin-Agent-Cluster process split
- Sandboxed iframe execution
- Chrome and Edge support
- Self-hosted static deployment option
- Graceful degradation on other browsers
Use cases
- Speed up heavy chart or animation DOM work
- Run React subtrees off the main thread
- Host your own PDom loader domain
- Improve interactive data visualization pages