Chat Widget Weight Checker
98% of website visitors never open the chat box — yet most chat widgets force every visitor to download 150 KB to 850+ KB of JavaScript during page load.
0 KB (waits for requestIdleCallback)
~1.8 MB to 2.4 MB uncompressed JS
Paste your chat <script> snippet or HTML to auto-detect weight
Traditional live chat widgets load their full UI framework, WebSocket client, and tracker scripts on every pageview — adding 140 KB to 850+ KB of compressed JavaScript (up to 2.4 MB uncompressed) and delaying mobile Largest Contentful Paint (LCP). Pokko uses a two-stage post-idle architecture: 0 KB runs during page load, a ~20 KB Preact launcher mounts inside a Shadow DOM only after the browser is idle, and the ~9 KB chat panel loads only if the visitor clicks the bubble.
How Pokko’s two-stage post-idle loading works (verified from live build)
Stage 0: During initial page load (FCP & LCP)
Nothing runs while your HTML, CSS, hero images, and fonts load. Your Lighthouse LCP and First Contentful Paint face zero competition.
Stage 1: Browser idle (requestIdleCallback)
After window.load and browser idle, Pokko mounts its isolated Shadow DOM bubble and teaser card. Still 0 WebSocket connections.
Stage 2: Only when the visitor clicks the chat bubble
The full message list, Luhn card masker, and WebSocket connection load on demand only for the ~2% of visitors who actually start a chat.
Live chat widget weight & architecture comparison (November 2026)
| Live chat widget | Blocking load (before window.load) | Idle download (chat closed) | Uncompressed JS parsed | CSS / DOM isolation | When live socket opens |
|---|---|---|---|---|---|
| Pokko Chat | 0 KB (waits for requestIdleCallback) | ~20 KB gzipped | ~84 KB raw (+26.5 KB Panel.js on click) | Shadow DOM (0 iframe overhead) | Only when visitor opens chat |
| Eloqra | ~5 KB | ~5 KB | ~15 KB | Inline / CSS | On interaction |
| Crisp | ~155 KB gzipped | ~155 KB gzipped | ~490 KB uncompressed JS | Injected DOM + CSS | On every pageview |
| Tidio | ~220 KB gzipped | ~220 KB gzipped | ~760 KB uncompressed JS | iframe + DOM | On every pageview |
| tawk.to | ~255 KB gzipped | ~255 KB gzipped | ~890 KB uncompressed JS | Multiple iframes | On every pageview |
| Zendesk | ~360 KB gzipped | ~360 KB gzipped | ~1,400 KB uncompressed JS | Multiple iframes | On every pageview |
| Intercom | ~415 KB+ gzipped | ~415 KB+ gzipped | ~1,800–2,400 KB uncompressed JS | Multiple iframes | On every pageview |
Want Telegram live chat with zero per-seat tax and 0 KB page-load delay?
Pokko routes website visitor messages straight into Telegram topics, keeps zero message text on our servers, and starts at $0 on the Free plan (Pro $19/month for up to 3 sites coming soon).
Frequently asked questions
Does Pokko really add 0 KB during initial page load?
Yes. In our production script (ChatWidget.astro), the dynamic import(@pokko/widget) is scheduled inside window.requestIdleCallback after the window "load" event fires. During critical page rendering (FCP and LCP), 0 bytes of widget JavaScript are downloaded or executed.
How big is the Pokko widget once the browser becomes idle?
In our current production build on pokko.chat (verified 7 November 2026), the idle stage downloads the lightweight Preact launcher (~20 KB compressed / ~58 KB raw), and the full chat panel (Panel.js, 26.5 KB raw / ~9.2 KB compressed) is fetched only when a visitor clicks to open the widget.
Why does Shadow DOM matter for a live chat widget?
Without Shadow DOM or an iframe, a widget injects hundreds of CSS rules into your page that can clash with your store’s buttons or fonts. An iframe isolates CSS but requires loading a complete second HTML document. Pokko uses a native Shadow Root — full style isolation with zero iframe document overhead.