Problem/Motivation
I am facing performance related issues, as -
- Image elements do not have explicit width and height
- Reduce unused CSS
Find attached screenshot.-

Steps to reproduce
check the performance of website on https://pagespeed.web.dev/
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | Screenshot 2025-11-14 at 12.53.25 PM.png | 133.3 KB | ravi kant |
| Screenshot 2025-11-10 at 6.21.56 PM.png | 374.5 KB | ravi kant |
Comments
Comment #2
bramdriesenHow does this impact performance?
The module itself has very limited CSS (https://git.drupalcode.org/project/cookiebot/-/blob/8.x-1.x/css/cookiebo...) all of the "unused" css is probably coming from Cookiebot itself. You should create an issue with them for this.
Same goes for the HTML image tag. That's part of what is being injected by Cookiebot, if you look at the templates in the module you will not find that image element.
Comment #3
ravi kant commentedThe issue is in module.
The issue is throwing by https://pagespeed.web.dev/ but it is ok with Lighthouse.
my primary focus is adding width and height attributes on image tag .
<img width="46" height="35" id="CybotCookiebotDialogPoweredbyImage" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAjCAYAAADrJzjpAAAAGXRF…" alt="logo">Comment #4
ravi kant commentedComment #5
bramdriesenNo it's not. The issue is in the code coming from cookiebot.
Comment #6
ravi kant commentedYes, the code is from 'cookiebot' so we cannot edit it.
Comment #7
bramdriesenOk, so please create a support ticket or issue with Cookiebot then to resolve those issues :)