# Live Chat Widget Weight & Page Speed Checker (2026)

> 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.

- **Updated:** 2026-11-16
- **Interactive Tool URL:** https://pokko.chat/tools/chat-widget-weight

## How Pokko’s two-stage post-idle loading works (verified from live build)

- **Stage 0: During initial page load (FCP & LCP) (0 KB JS · 0 connections):** 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) (~2.0 KB loader + ~18 KB gzipped teaser):** 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 (+9.2 KB gzipped (26.5 KB raw Panel.js)):** 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)

| Widget | Initial Page-Load Blocking JS | Idle Download | Uncompressed JS Parsed | DOM Isolation | Connects When |
| --- | --- | --- | --- | --- | --- |
| **Pokko Chat** | **0 KB** (`requestIdleCallback`) | **~20 KB** gzipped | **~84 KB** raw (+26.5 KB `Panel.js` on click) | Shadow DOM | Only when visitor clicks |
| **Eloqra** | ~5 KB | ~5 KB | ~15 KB | Inline / CSS | On interaction |
| **Crisp** | ~155 KB gzipped | ~155 KB gzipped | ~490 KB | Injected DOM + CSS | On every pageview |
| **Tidio** | ~220 KB gzipped | ~220 KB gzipped | ~760 KB | iframe + DOM | On every pageview |
| **tawk.to** | ~255 KB gzipped | ~255 KB gzipped | ~890 KB | Multiple iframes | On every pageview |
| **Zendesk** | ~360 KB gzipped | ~360 KB gzipped | ~1,400 KB | iframes | On every pageview |
| **Intercom** | ~415 KB+ gzipped | ~415 KB+ gzipped | ~1,800–2,400 KB | iframes | On every pageview |

## 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.
