Summary
Keep the host page fast by lazy-loading the chat panel and its heavy dependencies (markdown renderer, syntax highlighter) only when the user actually opens the widget. Lock in the win with a Lighthouse CI gate.
Motivation
The bubble itself should add near-zero overhead to the host page's TTI/LCP. The current bundle includes the markdown stack up-front; deferring it would meaningfully improve Lighthouse scores for sites embedding Claudius.
Acceptance Criteria
Summary
Keep the host page fast by lazy-loading the chat panel and its heavy dependencies (markdown renderer, syntax highlighter) only when the user actually opens the widget. Lock in the win with a Lighthouse CI gate.
Motivation
The bubble itself should add near-zero overhead to the host page's TTI/LCP. The current bundle includes the markdown stack up-front; deferring it would meaningfully improve Lighthouse scores for sites embedding Claudius.
Acceptance Criteria
mouseenterof the bubble to mask the latency on intentional opens