Onboarding widget performance: what the page weight actually costs
An onboarding checklist is not free to render. Here is what to check before assuming the widget is not the reason a page feels slower.
An onboarding checklist embedded on a landing or dashboard page adds a script, a network round trip for state, and a render — none of that is free, and on a page that was already close to a performance budget, a widget with the wrong loading strategy is enough to tip it over. Before assuming a checklist's performance cost is negligible, it is worth actually checking what it adds, because the assumption that a small UI component is a small cost is not reliably true.
What the widget actually loads
Three things happen when the checklist mounts: the script itself downloads and parses, it calls GET /api/gs/v1/state to know what is completed, and it renders once that response lands. The first is a fixed cost per page load. The second is a network round trip that blocks the first meaningful render of the checklist — not the rest of the page, since the widget should mount independently, but the checklist itself stays invisible or in a loading state until that call resolves.
Loading it without blocking the page
The script tag should carry async or defer so it never blocks the page's own parse; a synchronous script tag for a non-critical UI element is the single most common performance mistake with any embedded widget, not just this one. The state call happening after the page is interactive, rather than before, is the difference between a checklist that delays perceived load and one that simply appears a moment after everything else is usable:
<script src="https://gettingstarted.marthaia.com/embed.js" defer></script>
Where the cost shows up in real measurement
Largest Contentful Paint should not move when the checklist is added, because the checklist is not the page's main content and should not compete with it for paint priority. Total Blocking Time is the metric to watch instead — a widget's script execution competing with the main thread during the page's busiest moment is where a checklist's cost actually shows up, not in page weight alone.
What not to do
Do not inline the checklist's state call into the server-rendered page's initial data just to avoid a second request, unless that data is already part of what the page needs to render anyway. Coupling the checklist's freshness to the page's own render means the checklist shows stale state for as long as the page is cached, which is usually a worse trade than one extra client-side fetch.
What to measure instead of guessing
Nobody should quote a fixed millisecond cost for adding this or any onboarding widget without measuring it on the actual page it is added to — the cost depends on everything else already loading on that page and the network conditions of the users hitting it. What is worth measuring: Lighthouse or real-user Total Blocking Time on the page before and after adding the script, on your own traffic, not a synthetic benchmark borrowed from elsewhere.
See the docs for the embed script and its loading options, and the live preview to inspect the network calls it makes yourself.