Multi-page navigation test

Navigate between this page and the original demo while the chat pill remains visible. This shows how the widget survives DOM swaps.

Press ⌘ + K to open Back to single-page demo

Multi-page steps

  1. Open the chat with the Open Chat button.
  2. Switch to the original demo (same domain, different page).
  3. Watch for the pill/modal—they should stay visible without rebuilding the DOM elements.
  4. Go back to this page and open the chat again to confirm the session persisted via localStorage.

Why this demo exists

Some frameworks replace the <body> and <head> on each navigation. The chat widget now marks its elements as permanent and watches for missing parents so the UI never flashes away.

Feel free to script rapid navigation between these pages to reproduce the bug you observed.