Skip to content

Inth is now agentic by default. Use it from Claude, ChatGPT or Cursor.

See how

Blog

Company

How cookie banners affect Core Web Vitals

A cookie banner can move your Core Web Vitals. It can become the largest thing on screen, push content down or add work to the main thread. This guide shows which metrics a banner can affect, how to measure it and what CookieBench measured across ten consent tools.

Page speed and advertising results are different questions. Measure the page first.

Which Core Web Vitals a banner can move

Core Web Vitals has three metrics. A banner can touch each one in a different way.

  • Largest Contentful Paint (LCP): if the banner is the largest element in the first viewport, its paint time can become your LCP.
  • Cumulative Layout Shift (CLS): a banner that pushes page content when it appears counts as layout shift. A banner that overlays the page and does not move content does not count.
  • Interaction to Next Paint (INP): a consent script that runs long tasks while the visitor clicks can delay the next paint.

Hosted consent tools can also fetch configuration from a remote server and download banner code after the first render. Those are costs to test, not consequences of every consent tool. CLS measures layout movement, not load time, so a later banner does not automatically cause a layout shift.

Measure your banner in Lighthouse and field data

Lighthouse runs one lab visit on one device profile. Field data, such as the Chrome UX Report or your own real user monitoring, records what visitors experienced. The two often disagree, because a lab run starts with no saved consent choice and field visitors include returning ones who already chose.

To isolate the banner:

  1. Run Lighthouse on the page with the consent tool on, then with it off, on the same build.
  2. Check which element Lighthouse reports as the LCP element.
  3. Look for layout shift entries that start when the banner appears.
  4. Compare field LCP, CLS and INP for first visits with returning visits, if your monitoring can split them.

Measure banner visibility separately from the time your main content paints.

When the banner becomes your LCP element

On a short page or a small mobile screen, a banner with a large block of text can be the largest element in view. Lighthouse then reports the banner’s paint as LCP, and anything that delays the banner delays LCP.

Check the LCP element first. If it is the banner, test these changes:

  • Render the banner with the page instead of after a remote script loads.
  • Keep the banner text short so it is not the largest element.
  • Keep your main content visible and painted before the banner.

Remeasure after each change. Do not assume a fix worked.

Measure the page before you infer an ad cost effect

If you run Google Ads, examine a slow banner as part of landing page experience. Google describes Quality Score as a diagnostic tool, not an input in the ad auction. CookieBench does not measure ad costs, search rankings or conversion.

Check each effect on its own:

  1. Measure banner visibility separately from the time your main content paints.
  2. Check layout shift and main thread blocking in your own setup.
  3. Review landing page experience alongside your campaign data.
  4. Run an experiment before you attribute a cost or conversion change to the consent tool.

The banner often sits between teams. Legal owns the vendor, marketing runs the ads and engineering owns the page. Put consent tooling in your landing page performance review, alongside images, application code and other scripts.

Try c15t on your own pages

To test c15t, add it to a branch and measure the page before and after. Sign up to Inth, then paste this prompt into your coding agent. It reads the Inth setup guide and adds c15t to your repo. Review the diff before you ship. For a Next.js app, see the Next.js consent banner. See how consent tools compare in Inth vs OneTrust and all comparisons.

Add inth to my app: inth.com/SKILL.md
Setup prompt for your coding agent

Questions about banners and page speed