Cookie banner and page speed – what a consent module adds to loading and how to measure it
How much the consetgo banner weighs, how it loads and how it affects LCP, CLS and INP. File sizes measured in version 1.3.37 and how to check the banner’s impact on your own site.

Latest posts
- Google merged the Google tag with Tag Manager – what it changes for cookie consent
- Advertising on Google or measuring traffic? Check whether you need a cookie banner
- How should a proper cookie banner work?
- How to prepare your website for consetgo – pre-installation checklist
- Cookies in an online shop – a practical checklist
A consent module affects page loading in two places: on the server, where it rewrites the page code, and in the browser, where it shows the banner. With consetgo, the browser receives one JavaScript file from your server and a few kilobytes of CSS and configuration in the page code. Before consent, the page often loads less than without the module, because external scripts wait for the decision.
What happens on the server
consetgo intercepts the page code in PHP before it reaches the browser. Analytics and advertising scripts get the type text/plain, so the browser neither downloads nor executes them. Frames with videos and maps are replaced by a “Content blocked” placeholder. Details: how consetgo works.
The rewriting takes the server a little time – how much depends on the size of the page and on the server. You can check this by comparing the server response time (TTFB) before and after installation.
What reaches the browser
We measured the sizes on 25 October 2026 in version 1.3.37. We measured the code inserted into the page on the demo site – its size depends on the number of services and the length of the texts.
| Element | When | Size | After gzip compression |
|---|---|---|---|
banner.js (separate file, defer) | always | 40.5 KB | 11.7 KB |
| banner CSS (in the page code) | always | 13.1 KB | 3.1 KB |
| configuration and texts (in the page code) | always | 3.8 KB | 1.7 KB |
| Google Consent Mode (in the page code) | when enabled | 0.4 KB | 0.2 KB |
| GTM tag guard (in the page code) | when GTM is on the page | 8.8 KB + list of service addresses | 3.2 KB + list |
On the demo site (without GTM) this adds up to about 17 KB after compression. The scan file (collector.js) loads only in the owner’s browser in scan mode.
How it loads
- banner.js has the
deferattribute – it does not hold up page rendering. The banner appears once the browser has loaded the HTML. - One server: the file comes from the
consentfolder on your server. The module does not connect the browser to any external CDN or to the consetgo server. - No fonts: the default typeface is the system font, and the “inherit” setting uses the site’s font.
- No requests on page load: the configuration is in the page code. Consent is saved to your server only after the visitor decides.
- Version in the file address: after a module update the browser downloads the new banner.js instead of the old one from its cache.
Cookie banner and Core Web Vitals
Google assesses a page with three metrics. According to web.dev, good values are: LCP up to 2.5 s, INP up to 200 ms and CLS up to 0.1 – for 75% of visits, separately on phones and computers.
CLS – layout shifts
According to web.dev, cookie banners are a common source of layout shifts, especially when inserted at the top of the page so that they push content down. An overlay – a bar fixed to the edge or a window – does not shift content. In consetgo all banner layouts are overlays, and you can turn off the entrance animation in the Banner appearance tab (“Entrance animation” → “None”).
The placeholder of a blocked video or map gets the frame height from the height attribute (without it – the minimum height from the settings, 200 px by default). Specify frame dimensions in the code so that the space is reserved. More about videos and maps: YouTube, Vimeo, Google Maps and consent.
LCP – largest element
The banner is rarely the largest element on the page. On a phone, where it takes up more of the screen, it can become one – especially with a long text. A short text in the Texts tab helps.
INP – response to a click
After a click on “Accept all” the banner unblocks the scripts from the accepted categories. Loading them is the cost of the services themselves – analytics, pixels, chat. The first decision does not reload the page; changing an earlier decision does.
How to measure the banner’s impact on your site
- Watch out for measuring tools. In the Settings tab, the “Disable for User-Agents containing” field contains Lighthouse, PageSpeed and GTmetrix by default. When a tool identifies itself with such a name, the module does not run, and the result shows the page without the banner and without blocking.
- Measurement in the browser. In a private window open the developer tools, go to the Performance tab and record the loading of the same pages before and after installation – once without a decision, once after consent. Compare TTFB, LCP and CLS, with phone and computer settings.
- Data from real visits. The Core Web Vitals report in Google Search Console shows data from visitors over the last 28 days. You will see the effect of a change there after a few weeks.
You can see the banner and placeholders live in the demo.
Checklist
- Measurement before and after installation on the same pages.
- Measurement without a decision and after consent.
- You know that Lighthouse and PageSpeed see the page without the module by default.
- Frames with videos and maps have width and height attributes.
- Short banner text, especially on phones.
- Gzip or Brotli compression enabled on the server.
Questions and answers
Why does PageSpeed Insights not show the banner?
In the consetgo settings there is a list “Disable for User-Agents containing”, by default with Lighthouse, PageSpeed and GTmetrix. When a tool identifies itself with such a name, the module does not run – the measurement shows the page without the banner and without blocking. For comparison, use the Performance tab in the browser or data from the Core Web Vitals report.
Does a cookie banner shift page content (CLS)?
A banner inserted at the top of the page that pushes content down often causes a layout shift. A banner as an overlay (a bar fixed to the edge or a window) does not shift content. In consetgo all banner layouts are overlays.