Does a chat widget slow down your website?
Why live chat widgets hurt page speed and Core Web Vitals, the loading patterns that fix it, and how to measure a widget's real cost on your pages.
The Notert teamMonday, November 30th, 20269 min read

On this page
A chat widget is often the heaviest thing on a page that didn't ask for it. Teams add live chat to answer customers faster, then watch their Lighthouse score drop, their Largest Contentful Paint slip, and a page that felt instant start to stutter as it loads.
It doesn't have to work that way. A support widget slows a site down because of how and when it loads, not because chat is inherently heavy. This guide explains what a chat widget does to your Core Web Vitals, the loading patterns that keep it out of the way, how to measure its real cost on your own pages, and how Notert's widget is built to load.
Does a chat widget slow down your website?
It can, in three ways. Each lines up with one of Google's Core Web Vitals.
| Core Web Vital | What it measures | How a chat widget can hurt it |
|---|---|---|
| Largest Contentful Paint (LCP) | When the page's main content appears | Its script and assets download alongside your hero image and fonts, and delay them |
| Interaction to Next Paint (INP) | How quickly the page answers a press | Its JavaScript runs on the main thread while the visitor is trying to scroll or click |
| Cumulative Layout Shift (CLS) | How much the page jumps around as it loads | A banner, bar or bubble that pushes your content when it appears |
Behind all three is the same habit: a widget that loads everything, at once, as early as it can. The script, the chat window, the conversation history, the fonts and the avatars all arrive with your page, for every visitor, though most of them will never open the chat.
Why most chat widgets load too early
Most install snippets are written to make the widget appear as fast as possible, because that's what the vendor's demo shows off. On your page, that means the widget competes with your own content for the network and the main thread at exactly the moment both matter most.
A few patterns make it worse:
- A synchronous script in
<head>. The browser stops reading your page until the widget's script has downloaded and run. - The whole chat window up front. The panel, its screens and its dependencies download before anyone has asked for them.
- An iframe that boots a second app. Some widgets load a full page inside an iframe, with its own framework, styles and fonts, on every page view.
- Auto-opening. A greeting that pops open after a few seconds draws the heaviest part of the widget for everyone, and often lands in the middle of a press.
- Elements in the page's flow. A bar or banner inserted at the top of the page shifts everything beneath it.
Five ways to add a chat widget without hurting page speed
1. Load the script asynchronously
The first fix is the simplest: never let a widget's script block your page. Load it with async or defer, or as a module, which defers by default. The browser then keeps reading your page while the script downloads.
<script type="module" async src="https://example.com/widget.js"></script>This keeps the widget from holding up your HTML, but its download still competes with your images and fonts, and its code still runs during your page's busiest moments. So it's necessary, not sufficient.
2. Wait for the page to finish, then for an idle moment
The widget has no business running before your page has drawn. Wait for the load event, then ask the browser for a quiet moment with requestIdleCallback, so the widget runs when nothing else needs the main thread:
function whenIdle(run) {
const idle = () =>
"requestIdleCallback" in window
? requestIdleCallback(run, { timeout: 2000 })
: setTimeout(run, 1);
if (document.readyState === "complete") idle();
else window.addEventListener("load", idle, { once: true });
}The timeout makes sure it still runs on a page that's never quite idle, and Safari, which has no requestIdleCallback, falls back to a timer. Your LCP element is drawn long before the widget asks for anything.
3. Draw a small launcher first, and load the chat on intent
Most visitors never open the chat, so they should never pay for it. Split the widget in two: a small launcher that draws the button, and the chat window itself, loaded only when someone shows they want it.
The trick is to load on intent, not on the click itself. A pointer moving over the button, a keyboard focus landing on it, or a finger touching down are all signals that arrive a moment before the click, and that moment is usually enough to fetch the panel so it opens without a wait:
const warm = (event) => {
if (event.target.closest("[data-chat-toggle]")) loadPanel();
};
document.addEventListener("pointerover", warm);
document.addEventListener("pointerdown", warm, { capture: true });
document.addEventListener("focusin", warm);Google's own Lighthouse guidance calls the extreme version of this a facade: a static picture of the button that swaps in the real widget on interaction. See lazy load third-party resources with facades, which names live chat among the classic cases. A small real launcher does the same job while still showing an unread count or an online dot.
4. Keep it out of your layout
A launcher that floats in a corner, with fixed positioning, takes no space in your page's flow, so it shifts nothing when it appears. Avoid widgets that insert bars or banners into the top of the page, or reserve their space in your CSS so the page doesn't jump.
Isolation helps too. A widget that draws inside a shadow root brings its styles with it and can't restyle your page, and your page's CSS can't break it, so you don't end up shipping extra overrides to fix one or the other.
5. Don't auto-open, and don't load it where it isn't needed
A chat window that opens itself undoes every pattern above. Let the launcher show that there's something new instead, and let the visitor decide.
And not every page needs chat. A checkout, an embedded editor or a full-screen flow can do without it. Either leave it off those pages or hide the launcher while the page shows something of its own in that corner.
How Notert's widget loads
We built Notert's widget around the patterns above, because a support tool that makes your product feel slower is working against you.
- Nothing before your page is ready. The snippet's small inline script only sets up a queue for your calls. The widget's script loads as a module, without holding up your page, then waits for your page's
loadand an idle moment before it draws the launcher. - The panel loads on intent. The chat window and its screens load only as someone points at the launcher, focuses it or presses it, or when a reply from your team is waiting for them. A press made before the widget has loaded doesn't wait for the idle moment: it starts the widget at once and opens it.
- No layout shift. The launcher floats in a corner of the screen, outside your page's flow. You can move it to the other side, nudge it clear of your own buttons, or hide it with
hideLauncherwhile your page needs that corner. - No clashing styles. The widget draws inside a shadow root. Its font goes under a name of its own, so it never replaces yours.
- Nothing stored for visitors who don't use it. The widget sets no cookies, and a visitor who never opens it gets nothing stored in their browser.
- Your own button, if you prefer. Pass
launcher: falseand the round button isn't drawn at all: your own Help button opens the widget, and still warms the panel as someone points at it.
You don't need any of the code in the patterns above to get this: it's how the standard snippet behaves. The install guide covers what the snippet does on your page.
Load it only after consent, or only for some users
If your site asks for consent before it runs anything beyond what it needs, you can keep the widget's scripts on the page and hold back the one call that starts it:
<script>
window.$notert=window.$notert||[];window.notert=window.notert||new Proxy({},{get:(_,p)=>typeof p=="string"&&p!="then"&&/^[a-z]/i.test(p)?(...a)=>window.$notert.push([p,...a]):void 0});
// No init here: startNotert() below starts the widget once the visitor agrees.
function startNotert() {
window.notert.init("YOUR_WORKSPACE_ID", { widget: true, theme: "page" });
}
</script>
<script type="module" async src="https://app.notert.io/embed/v1.js"></script>Until init is called, the widget's script loads nothing more, draws nothing and stores nothing. Call startNotert() from your consent tool once a visitor agrees. The same pattern starts it only for the users who should have it, such as a plan that includes support. See start it only once a visitor agrees.
How to measure a chat widget's real cost
Don't take any vendor's word for it, ours included. Measure on your own pages, with the widget and without it.
- Pick a page that matters, such as your landing page or your app's dashboard, and a phone-sized profile with a slowed network and CPU, since that's where a widget hurts most.
- Run Lighthouse or PageSpeed Insights several times with the widget, then several times with its scripts removed, and compare the medians of LCP, Total Blocking Time and CLS. One run of each is noise.
- Record a trace in your browser's Performance panel. Look for long tasks from the widget's scripts during the first seconds, and for requests that start before your LCP element has drawn.
- Open the chat and record again. The first open is where a lazily loaded panel pays its cost. It should feel instant if the panel warmed on hover or focus.
- Watch your field data after you ship, in PageSpeed Insights' real-user data or your own monitoring. Lab scores show what can happen; field data shows what does.
If a widget adds long tasks before your page is drawn, or its requests start ahead of your hero image, it's loading too early, whatever its marketing says.
A note on Google Tag Manager
Adding a chat widget through Tag Manager doesn't make it lighter: the widget loads the same way, after Tag Manager itself has loaded. It's a convenient way to add one to a site without touching its code, but a visitor whose browser or an extension blocks Tag Manager gets no widget. Inside your product, where everyone should have it, add it to your pages directly. See the Google Tag Manager guide.
Questions people ask
Does live chat affect SEO?
Indirectly. Core Web Vitals are one of the signals search engines use for page experience, so a widget that drags down LCP, INP or CLS across your site can cost you. A widget that loads after your page is drawn, and keeps out of its layout, leaves them as they were.
Should I lazy load my chat widget?
Yes. The chat window should load only when someone shows they want it, such as pointing at the button or focusing it. The small launcher can load once your page is idle.
Does a chat widget hurt Interaction to Next Paint?
It can, if its JavaScript runs on the main thread while the visitor is pressing or scrolling. Waiting for an idle moment, and loading the chat window only on intent, keeps the widget's work away from your visitor's presses.
Is an iframe chat widget faster than a script?
Not by itself. An iframe isolates styles, but it usually boots a whole second app inside your page. What matters is how much loads, and when.
How do I add a chat widget in a React or Next.js app without slowing it down?
Add it once in the layout every route shares, so it loads once per visit rather than on every page change. See how to add a support widget to a Next.js app and to a React app.
Google, Lighthouse, PageSpeed Insights, Google Tag Manager, Safari and the other names here belong to their owners. Notert is independent of them and isn't endorsed by them.


