Skip to content

Inth Relay, our launch week, starts Monday 7 December. One launch a day

Check in

Blog

Engineering

How we built a cookie banner with a 27 ms desktop median

We built c15t to make consent part of the application. In CookieBench’s latest Next.js desktop run, its banner appeared in a median 27 ms. That measures banner appearance, not an overall performance win.

Soon after launching c15t, Inth's open-source cookie consent standard, we ran a test.

The current benchmark compares ten consent managers on the same Next.js article page, each against the same page without a CMP. It reports banner visibility, page-loading delay, click response, download size and consent checks separately.

The results were staggering.

Cookie Consent SolutionBanner Load Speed
c15t27 ms
Cookie Control385 ms
CookieYes387 ms
iubenda431 ms
Didomi466 ms
Enzuzo477 ms
OneTrust629 ms
Osano644 ms
Usercentrics672 ms
Ketch1680 ms

In this desktop profile, c15t’s banner median was 27 ms. The other measured CMPs ranged from 385 ms to 1,680 ms. A later banner does not establish slower main content or tracking before consent: those need separate measurements.

This matters more than most developers realize, and fundamentally, it affects the bottom line of your company.

How c15t Is Different

We took a different approach. Instead of treating the cookie banner as an external service that gets injected into your site, we built it as a native part of your application.

Here's what that means in practice:

1. Bundled, Not Injected

c15t’s consent components ship alongside your application code. Bundling avoids a third-party banner script, but it does not make the download free: the current Next.js desktop test added 104 KB of initial transfer and six requests, with zero requests to other hosts.

pnpm dlx @c15t/cli skills

Your bundler handles tree-shaking, code-splitting, and optimization, just like it does for the rest of your application.

2. Consent logic in your application

The consent UI and configuration can live in your bundle. Hosted mode still communicates with a backend for consent services and records, so the full runtime cost depends on your configuration.

Keep the distinction clear: zero third-party requests in the tested fixture does not mean zero network activity or zero page overhead.

3. Framework-Native Components

We didn't build a generic JavaScript widget that tries to work everywhere. We built native React components that use React's lifecycle, state management, and rendering optimizations. The result feels like part of your app, because it is. Learn about the ConsentManagerProvider and ConsentBanner.

import { ConsentManagerProvider, ConsentBanner, ConsentDialog } from '@c15t/nextjs';

export default function ConsentManagerClient({ children }) {
  return (
    <ConsentManagerProvider
      options={{
        mode: 'hosted',
        backendURL: 'https://your-instance.c15t.dev',
        consentCategories: ['necessary', 'measurement', 'marketing'],
      }}
    >
      <ConsentBanner />
      <ConsentDialog />
      {children}
    </ConsentManagerProvider>
  );
}

What a 27 ms banner median tells us

Let's put that number in context.

Banner visibility is separate from Core Web Vitals. LCP measures the largest paint; CLS measures layout shift; INP measures interaction responsiveness. FCP is a useful page-load metric, but it is not a Core Web Vital.

A banner can become the largest element on screen. CookieBench also times the page’s main content, so an early banner cannot hide a later content paint.

The current Next.js desktop test measured:

  • 27 ms median banner visibility; 92 ms LCP, with 8 ms added main-content paint delay
  • 0 ms total blocking time and 0.00 cumulative layout shift
  • +104 KB initial transfer and zero third-party requests
  • 240 ms banner visibility and +400 ms main-content delay on emulated mobile
  • No measured claim about search ranking, ad cost or conversion uplift

But there's another benefit that's harder to measure: trust.

A fast banner makes the choice available sooner. It does not prove that trackers are blocked: CookieBench tests that behavior separately. Every CMP on the current leaderboard passed the consent checks the runner could perform.

Read the measurements and their limits

We maintain CookieBench and also build c15t. The code and methodology are public. Updated 12 October 2026: CookieBench results, Next.js desktop profile, analysis matrix-2026-10-12, methodology cookiebench-v3.2.4. CookieBench is maintained by Inth. The run used a local c15t backend and live services for other CMPs. Mobile results use emulation. These are lab results, not a guarantee for your site. See run limits.

The methodology is simple:

  1. Load the shared article page with each CMP and its matching no-CMP control
  2. Run 15 paired page-load visits after warm-ups on desktop and emulated mobile
  3. Report medians and paired differences, with uncertainty intervals where available
  4. Keep banner visibility, main-content paint, clicks, downloads and consent checks separate

c15t’s published banner medians are 27 ms on Next.js desktop and 240 ms on emulated mobile. It did not win every metric: CookieYes added less mobile main-content delay, at 176 ms against c15t’s 400 ms. CookieBench no longer publishes a score out of 100.

What This Means for Developers

If you're a developer building a production application, you have three options for cookie consent:

  1. Hosted CMP: configure a vendor’s script and platform, then measure its performance and consent behavior on your site.
  2. Build your own: You'll have total control, but you NEED to understand consent compliance from head to toe, alongside a massive time investment, and an ongoing maintenance burden.
  3. c15t: application-owned consent components and configuration. Verify consent behavior, page impact and legal requirements in your implementation.

We built c15t because we wanted consent controls that fit our application and styling. The latest 27 ms desktop banner median is useful evidence for that design, alongside the measured transfer and page-loading costs.

c15t and Inth: The Complete Solution

c15t is the open-source consent management library built as native React components. Inth is the consent infrastructure that runs c15t at scale.

When you use c15t with Inth, you get:

  • Zero ops: Inth handles the backend, keeping consent records durable across devices and sessions
  • Automatic jurisdiction detection: No configuration needed, Inth determines where users are and applies the right consent model
  • Server-side consent awareness: Your server knows when consent is given, enabling server-side analytics without leaks
  • Network resilience: If the backend is temporarily unavailable, c15t continues working and re-syncs when connectivity returns
  • Observability: Monitor consent rates, track compliance, and access audit logs through Inth's dashboard

This is the difference between a library and a production-ready solution. c15t gives you the code. Inth gives you the confidence to ship it. Learn about the client modes and backend integration.

Getting Started

If you're using Next.js or React, you can have c15t running live on your site in five minutes. Start with the quickstart guide.

Or start with the CLI:

npx @c15t/cli

Visit c15t.com/docs.

The CLI scaffolds everything you need: components, configuration, and styling. Your banner will be bundled with your application, optimized by your build process, and visible to users in under 90ms.

No external scripts. No performance tax. No compliance theater.

Just a fast, functional cookie banner that respects both your users and your Core Web Vitals.

Read CookieBench’s current results and methodology to compare the measured CMPs by the metric that matters for your site.