lkmedia white

CLS Issue – Astra Theme Header (Fix)

last updated 10 months ago

In this post I want to share how I fixed the CLS problem with the header of Astra Theme.
I personally use Astra on many of my websites, including the gaming website five-rp.de

Before the fix

brave zvKSpLr64S

Here in the GTMetrix test you can clearly see that the CLS value is very high (0.43).

And this is what it looked like (here on another website):

image 2

The desktop version briefly displayed the mobile header, which resulted in a CLS error.

How to fix the CLS error in Astra

The error occurs when you use optimizations in the caching plugin. In this case in WP Rocket.

Therefore you should turn off optimize CSS display:

image 3

After the fix

I turned off the “Remove unused CSS” function and after that the error was solved:

image 4

  1. Your article helped me a lot, is there any more related content? Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

lk media – your partner for online marketing & web design.

Your success online is what drives us.
lkmedia white
Agency for future-oriented online marketing and web design. We are a team of creative minds and strategic thinkers who are passionately committed to your success in the digital space. Our goal is to present your brand optimally, reach your target group and generate sustainable growth.
© Copyright 2024 lkmedia
Sitemap Data protection imprint
en_USEnglish