# OneTrust cookie banner: speed and features on Astro

Enterprise privacy suite with a hosted cookie consent module.

- Vendor: OneTrust
- Website: https://www.onetrust.com
- Version tested: Hosted
- Framework: Astro

We measured other CMPs on Next.js only, so on Astro this comparison uses OneTrust’s other integrations. [OneTrust on Next.js](https://cookiebench.com/benchmarks/onetrust.md).

## Desktop

Desktop profile: 1365 × 768 · No CPU slowdown · 12.5 MB/s, no added latency.

In our tests with its Astro integration, OneTrust showed its cookie banner in a median 655 ms on desktop. It added no measurable delay to the main content. Accept responded in 24 ms and Reject in under 16 ms. It held trackers back in all 4 consent checks.

On an emulated mid-tier phone, the banner took 3.70 s. Per vendor docs, OneTrust supports IAB TCF, IAB GPP, Google Consent Mode v2, Google CMP certification and Global Privacy Control.

| Question | Answer | How it compares | Context |
| --- | --- | --- | --- |
| How fast does the banner appear? | 655 ms | 5th fastest of 6 OneTrust integrations | Median of 15 visits. |
| Does it slow the page down? | No measurable change | No measurable delay, like 5 of the other 5 OneTrust integrations | Main content painted as fast as on the same page without a consent manager. |
| How fast does a click respond? | 24 ms | Joint 5th fastest of 6 OneTrust integrations | Reject responded in under 16 ms. Under 200 ms feels instant. |
| Does it block trackers until consent? | 4 of 4 checks passed | All 6 OneTrust integrations passed every check | No tracker ran and the page set no cookie before the visitor chose. |

## Mobile

Mobile (emulated) profile: 390 × 844, DPR 3 · Mid-tier phone CPU (4× slowdown) · 200 KB/s, 150 ms latency.

In our tests with its Astro integration, OneTrust showed its cookie banner in a median 3.70 s on an emulated mid-tier phone. It delayed the main content by 860 ms (95% interval 812 ms to 904 ms). Accept responded in 16 ms and Reject in 16 ms. It held trackers back in all 4 consent checks.

On desktop, the banner took 655 ms. Per vendor docs, OneTrust supports IAB TCF, IAB GPP, Google Consent Mode v2, Google CMP certification and Global Privacy Control.

| Question | Answer | How it compares | Context |
| --- | --- | --- | --- |
| How fast does the banner appear? | 3.70 s | 3rd fastest of 6 OneTrust integrations | Median of 15 visits. |
| Does it slow the page down? | +860 ms (95% interval 812 ms to 904 ms) | 6th of 6 OneTrust integrations, from least to most delay | Compared with the same page without a consent manager. |
| How fast does a click respond? | 16 ms | Joint fastest of 6 OneTrust integrations | Reject responded in 16 ms. Under 200 ms feels instant. |
| Does it block trackers until consent? | 4 of 4 checks passed | All 6 OneTrust integrations passed every check | No tracker ran and the page set no cookie before the visitor chose. |

## Which standards and features does OneTrust support?

### Standards

| Feature | Support | Source |
| --- | --- | --- |
| IAB TCF | Per vendor docs (TCF v2.2 and v2.3) | https://www.onetrust.com/solutions/consent-and-preferences/ |
| IAB GPP | Per vendor docs | https://developer.onetrust.com/onetrust/docs/iab-gpp |
| Google Consent Mode v2 | Per vendor docs | https://www.onetrust.com/blog/what-googles-june-2026-consent-mode-changes-mean-for-google-ads/ |
| Google-certified CMP | Per vendor docs | https://support.google.com/adsense/answer/13554116 |
| Global Privacy Control | Per vendor docs | https://www.onetrust.com/blog/global-privacy-control-how-to-honor-consumer-opt-out-requests/ |

### Compliance

| Feature | Support | Source |
| --- | --- | --- |
| Geo-targeted banners | Per vendor docs | https://www.onetrust.com/products/cookie-consent/ |
| Script blocking | Per vendor docs | https://www.onetrust.com/products/cookie-consent/ |
| Consent records | Per vendor docs | https://www.onetrust.com/solutions/consent-and-preferences/ |
| Cookie scanning | Per vendor docs | https://www.onetrust.com/products/cookie-consent/ |

### Developer

| Feature | Support | Source |
| --- | --- | --- |
| Open source | Not supported (Proprietary) | https://www.onetrust.com/legal/OneTrustTermsv20210929.pdf |
| Self-hostable | Partial (Script only; hosted backend) | https://my.onetrust.com/articles/en_US/Knowledge/UUID-3e2923d6-8364-c2fa-0625-7897395f4cd2 |
| Headless UI | Partial (Mobile and CTV only) | https://developer.onetrust.com/onetrust/docs/onetrusts-next-generation-cmp-sdks |
| TypeScript types | Unknown | – |

### Pricing

| Feature | Support | Source |
| --- | --- | --- |
| Free tier | Not supported (Quote-based pricing) | https://www.onetrust.com/pricing/ |

## Which frameworks does OneTrust work with?

OneTrust has no first-party framework SDKs. It installs through a script tag in each framework listed. This run measured 6 integrations, each against the same app without a consent manager. The results at the top start on Next.js, the framework that we tested every CMP on. The Framework menu switches them.

| Framework | Integration | Benchmarked |
| --- | --- | --- |
| Script tag | Script tag | [Yes](https://cookiebench.com/benchmarks/onetrust/script-tag.md) |
| React | Script tag | [Yes](https://cookiebench.com/benchmarks/onetrust/react.md) |
| Next.js | Script tag | [Yes](https://cookiebench.com/benchmarks/onetrust.md) |
| Vue | Script tag | No |
| Nuxt | Script tag | [Yes](https://cookiebench.com/benchmarks/onetrust/nuxt.md) |
| Svelte | Script tag | No |
| SvelteKit | Script tag | No |
| Astro | Script tag | Yes (this page) |
| TanStack Start | Script tag | [Yes](https://cookiebench.com/benchmarks/onetrust/tanstack-start.md) |

## How does OneTrust compare?

- [c15t vs OneTrust](https://cookiebench.com/compare/c15t-vs-onetrust.md): On desktop, c15t showed its banner in a median 65 ms, against 672 ms for OneTrust.
- [OneTrust vs Didomi](https://cookiebench.com/compare/onetrust-vs-didomi.md): On desktop, Didomi showed its banner sooner (498 ms vs 672 ms) but transferred 253 KB more than a page without a consent manager, against 211 KB for OneTrust.

## Questions about OneTrust

### How fast is OneTrust’s cookie banner?

On desktop, it appeared in a median 629 ms, against 471 ms for the median of the 10 CMPs measured. On an emulated mid-tier phone, it appeared in a median 3.92 s, against 2.71 s for the median of the 10 CMPs measured.

### Does OneTrust slow down the page?

On desktop it added no measurable delay to the main content. On an emulated mid-tier phone it delayed the main content by 476 ms (95% interval 444 ms to 508 ms). Delay is the extra time before the main content appears. We compare Largest Contentful Paint on the same page, with and without a consent manager.

### Does OneTrust block trackers before consent?

It passed 4 of 4 checks on desktop and on an emulated mid-tier phone. A check fails if a tracker runs, the page sets a cookie or data leaves the page before the visitor chooses.

### Does OneTrust support IAB TCF and IAB GPP?

Per vendor docs, OneTrust supports IAB TCF, IAB GPP, Google Consent Mode v2, Google CMP certification and Global Privacy Control. Feature support comes from OneTrust’s documentation. CookieBench did not test these features itself.

Spotted a mistake? [Report a correction](https://cookiebench.com/corrections.md) and we will re-check it.

Methodology [cookiebench-v3.2.4](https://cookiebench.com/methodology). inth, the team behind c15t, maintains CookieBench. c15t is one of the consent managers we measure ([disclosure](https://cookiebench.com/methodology)). Feature support comes from vendor documentation unless a row says "Verified by test".
