init(config)
Call init() once when your app loads. It’s safe to call in SSR environments — it checks for window internally and does nothing on the server. Calling it multiple times is also safe — subsequent calls are ignored.
Top-level options
Replay options (replay.*)
Script tag options
Standard (recommended)
The async snippet queues any API calls made before the SDK loads and replays them once the script is ready:Pinned version (immutable CDN cache)
Use this when you want to lock to a specific version to prevent unexpected changes:Strict CSP (rrweb bundled in)
If your Content Security Policy blocks dynamically injected<script> tags, use the full bundle. It’s larger but loads no additional scripts at runtime:
Bundle sizes
The CDN script loads with
async and never blocks rendering. rrweb is injected 1.5 seconds after window.load — not at initial page load — so it doesn’t affect your Core Web Vitals.