Skip to content
All articles

Conversion

Page speed and social proof scripts

What a social proof script costs in load time and Core Web Vitals, how Provedly keeps it small, and the settings that matter for performance.

Provedly team··5 min read

A social proof widget earns its place only if it does not slow the page it is trying to help. Provedly's script is about 6 KB gzipped, loads asynchronously, renders in a Shadow DOM outside your layout, and waits before it draws anything. This post lays out exactly what happens on load, what it means for Core Web Vitals, and the few decisions on your side that affect performance.

What loads, and when

<script
    src="https://provedly.app/w/widget.js"
    data-token="pp_…"
    async
    defer
></script>
  1. The browser fetches widget.js without blocking HTML parsing, because of async and defer.
  2. The loader requests GET /api/w/{token}/config, which returns settings and up to 30 recent records in one response.
  3. After your start delay (3 seconds by default), the first toast renders. Each render posts one impression to /track.
  4. While the tab is open, a heartbeat hits /presence every 30 seconds for the live counter.

That is the complete network footprint: one script, one config request, one small request per shown notification, and one heartbeat per 30 seconds. There are no fonts fetched, no images unless you use image avatars, and no third-party calls from inside the widget.

Core Web Vitals, one by one

Largest Contentful Paint. The script does not block parsing or rendering, and nothing it draws is a candidate for LCP; a toast appears after your main content and is small. In practice a correctly installed widget has no measurable effect on LCP. If you put the tag in <head> without async defer, that stops being true, so do not.

Cumulative Layout Shift. The toast, counter and bar are position: fixed inside a shadow root. Fixed elements do not take space in the document flow, so their appearance does not move anything. CLS contribution is zero by construction. The exception is a bar in the "inline" position, which you place in the flow deliberately; reserve its height if you use that.

Interaction to Next Paint. The widget's work on the main thread is small: parsing a 6 KB script, rendering a few DOM nodes, and a timer. It does not attach scroll or pointer listeners to your document. INP is unaffected unless your page is already at the edge.

Metric Effect of a correctly installed widget
LCP None; async, after main content
CLS None; fixed position, outside flow
INP Negligible; no document-wide listeners
Total transfer About 6 KB gzipped plus config JSON

What the 3-second delay is for

The default start delay exists for the visitor, not for performance, but it helps both. By the time the first toast appears the page has usually finished loading, images have arrived and the visitor has oriented themselves. A notification that pops before the hero image has painted is both annoying and, on slow connections, a competitor for bandwidth. Keep the delay at 3 seconds or longer; shortening it buys nothing.

Decisions on your side that matter

Where the tag goes. End of <body> with async defer, or next/script with strategy="afterInteractive". Not in <head> synchronously.

Direct tag versus Tag Manager. GTM adds the container load and trigger evaluation before the widget script is even requested. On a slow page that pushes the first toast later than you intend. See Installing through Google Tag Manager, and when not to.

Image avatars. If you send avatar_url on records, each toast may fetch an image. Keep them small or use a non-image avatar style; webhook records from Stripe and Shopify do not carry photos anyway.

Number of widgets. One widget per page covers toasts and the live counter. A bar is a second loader. Do not install the same token twice; the loader is idempotent, but duplicate tags still cost a request.

Email countdown GIFs. These are a different product: an animated GIF rendered server-side for emails, up to 3 minutes long and under 100 KB. They do not affect your website's performance at all, but keep in mind that email clients load them on open.

Measuring it yourself

Run Lighthouse or WebPageTest on a page twice, with and without the tag, and compare. Expect the difference to be within run-to-run noise. If you see a real regression, check for a synchronous tag placement, a duplicate tag, or a CSP that is causing retries. The dashboard does not report performance numbers; your own tooling is the source of truth here, and the widget is designed to disappear from it.

Why size matters more than it seems

Several social proof tools, as of October 2026 and per their listings, bundle A/B testing engines, visual editors, analytics layers and multiple notification types into one client script. Each feature is a reason for the bundle to grow. Provedly's widget does one thing on the page: fetch config, show real records with their labels, count presence honestly. Everything else, including the verification page and the attribution matching for proof-assisted orders, happens on the server. Keeping the client small is a product decision as much as an engineering one.

Frequently asked questions

Does the heartbeat every 30 seconds drain mobile battery or data?

A heartbeat is a tiny request once every 30 seconds while the tab is open. It is far below what any analytics script or chat widget does, and it stops when the tab is closed.

Can I defer the widget until the visitor scrolls?

The start delay already handles the common case. If you need scroll-triggered loading, inject the tag from your own scroll handler using the same src and data-token; the loader works the same way.

Does the Shopify app embed add more weight than the script tag?

No. The app embed loads the same renderer with the same isolation, and it carries the advantage that orders arrive verified without any extra client code.

Install it, run your speed test, and keep whichever result you get: start free.

performancecore web vitalsengineering

Get new articles by email

Honest social proof, verified purchases and what actually moves conversion. A few emails a month at most; leave with one click.

We email you once to confirm. Your address is used only for this newsletter; see the privacy policy.

Show proof you can stand behind.

Free plan, one site, 2,000 impressions a month, verified purchases included. The badge on the free plan links to your verification page, which is the point.