- This topic has 3 replies, 2 voices, and was last updated 1 year, 6 months ago by David.
January 24, 2021 at 3:09 am #1631155Markus
I saw in the Core Web Vitals of my Search Console, that after my switch to Generatepress almost every blog post on mobile and desktop are flagged as bad CLS.
For example on this page: https://journal.markusthoma.com/5-tipps-gute-fotos-machen/
I tried to figure out what to do with the help of PageSpeed Insights:
In the layout shift recommendations it says, it has found 5 critical elements:
“GUTE FOTOS MACHEN – 5 TIPPS DIE ICH GERNE FRÜHER GEKANNT HÄTTE
Am 16. Juli 2016 in Porträt-Tricks veröffentlicht.0
16. Juli 2016
<time class=”entry-date published” datetime=”2016-07-16T13:17:12+02:00″ itemprop=”datePublished”>
MT Journal Fotografie Blog
Am 16. Juli 2016 in Porträt-Tricks veröffentlicht.0″
All of those are elements, that are placed in my custom element header of the blog posts. I think it must be the Title of the blog post, date, etc.
I already tried to exclude the site logo from lazy loading. But the 5 errors still appear.
So my question: What can I do with my header to fix the bad CLS score? Maybe add some fixed heights for all those elements in the header to prevent CLS?
With kind regards,
MarkusJanuary 24, 2021 at 7:35 am #1631537DavidStaffCustomer Support
the issue is related to the late loading of your Fonts.
If you right click inspect your site, and go to the network tab, clear your browser cache and reload the page you will see what is being loaded and when.
You’re font requests are one of the last requests to be made…
And they come after some very large cached CSS and JS files.
You should check your cache settings to see why it is deferring the font loading – its generally related to options that ‘Eliminate Render Blocking’January 24, 2021 at 12:18 pm #1631801Markus
thank you very much for your quick response! I just updated my website by adding a header hook for preloading my two main woff2 font files. I will have to inspect, if it’s gone by now – but I think it looks good!
Thank you very much! After I tested it out maybe I will come back again.
With kind regards,
MarkusJanuary 25, 2021 at 2:10 am #1632387
- You must be logged in to reply to this topic.