The embeddable widget script has been cut from 24KB to 12KB (gzipped).
How we did it
Removed unused dependencies — stripped out a date formatting library that was only used for one function
Tree shaking — enabled proper ESM exports so bundlers can eliminate dead code
Lighter DOM library — switched from a mini-framework to vanilla DOM APIs
Inlined critical CSS — no separate CSS file to fetch
Impact
| Metric | Before | After |
|---|---|---|
| Script size (gzipped) | 24KB | 12KB |
| Load time (3G) | 340ms | 160ms |
| Core Web Vitals impact | Measurable | Negligible |
The widget now loads in under 100ms on broadband connections and has zero measurable impact on your app's Core Web Vitals.
Update your embed snippet from Project Settings → Widget to use the v2 script for the smallest bundle.