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
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):
The desktop version briefly displayed the mobile header, which resulted in a CLS error.
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:
I turned off the “Remove unused CSS” function and after that the error was solved:
To tài khon min phí says:
Your article helped me a lot, is there any more related content? Thanks!