Problem/Motivation

I am facing performance related issues, as -

  1. Image elements do not have explicit width and height
  2. Reduce unused CSS

Find attached screenshot.-

error

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

Comments

ravi kant created an issue. See original summary.

bramdriesen’s picture

Title: How can resolved Performance related issues? » How can resolve performance related issues?
Status: Active » Postponed (maintainer needs more info)

How 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.

ravi kant’s picture

StatusFileSize
new133.3 KB

The 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">

error

ravi kant’s picture

Status: Postponed (maintainer needs more info) » Active
bramdriesen’s picture

Status: Active » Postponed (maintainer needs more info)

The issue is in module.

No it's not. The issue is in the code coming from cookiebot.

ravi kant’s picture

Yes, the code is from 'cookiebot' so we cannot edit it.

bramdriesen’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Ok, so please create a support ticket or issue with Cookiebot then to resolve those issues :)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.