OneTrust: impact on page speed
Category: Consent management
OneTrust provides the consent banner and preference centre and controls which categories of scripts may run. It loads early and on every page.
On 6.1 % of the 41409 homepages measured, OneTrust is among the five heaviest third parties. Where it is, it takes a median of 110 ms of main-thread time; on the heaviest quarter of those sites it takes 152 ms or more.
6.1 %
of homepages: among the five heaviest third parties
110 ms
median main-thread time
152 ms
main-thread time on the heaviest quarter (p75)
220 KB
median transfer size
Distribution across homepages
Percentiles across 2509 homepages with OneTrust.
| Percentile | Main-thread time | Transfer size |
|---|---|---|
| p25 |
76 ms
|
192 KB |
| Median |
110 ms
|
220 KB |
| p75 |
152 ms
|
266 KB |
| p90 |
221 ms
|
379 KB |
In context
On 7.9 % of the homepages where it appears, OneTrust alone uses 250 milliseconds of main-thread time or more, the mark from which Lighthouse flags third-party code.
On a typical homepage OneTrust makes up 5.4 % of the page weight.
Other Consent management tools
- Optanon2,509 homepages · 110 ms
- Cookiebot1,459 homepages · 84 ms
- Didomi646 homepages · 150 ms
- Usercentrics CMP538 homepages · 87 ms
- Quantcast242 homepages · 13 ms
- TrustArc130 homepages · 55 ms
Based on homepages where the tool is among the five heaviest third parties (measurements before October 18, 2026).
Often loaded together with
Share of homepages with OneTrust where the other tool is also among the five heaviest third parties.
- Google Tag Manager 72 %
- Google/Doubleclick Ads 36 %
- Google Analytics 28 %
How to spot OneTrust on your page
The stub otSDKStub.js and the banner SDK otBannerSdk.js load from cdn.cookielaw.org together with a JSON configuration for each domain, language files, styles and images; Lighthouse lists them under the product's former name "Optanon". Large organisations often manage many domains in one OneTrust account, and the published configuration can carry categories and languages that a given site never uses. Trimming that configuration reduces both download size and processing on every first visit.
How to reduce the impact of OneTrust
- Remove unused categories, languages and templates from the published configuration.
- Include the banner script only once.
- Check whether the banner becomes the Largest Contentful Paint element on mobile.
Frequently asked questions
How can I load OneTrust with less impact?
Remove unused categories, languages and templates from the published configuration. Include the banner script only once.
Does OneTrust affect Core Web Vitals?
OneTrust is common on large sites in markets with consent rules, and its cost depends on the configuration. The banner script loads early and applies the consent categories in the browser, which adds main-thread work that INP picks up when visitors click accept. A banner placed in the page flow instead of as an overlay shifts the layout, and a slow banner can hold back the LCP element.
Method and sample: Third-Party Benchmark.