CLS issue with the_post_thumbnail
-
Hi there,
I realised that the featured image on top of blog posts is causing a CLS value in Google PageSpeed of around 0.10 – now I have deactivated the featured images on top of each post completely.
The reason seems to be this line of code:
the_post_thumbnail( ‘ashe-full-thumbnail’ );And then a 300x300px image is loaded and downsized to 200x200px – the theme developers could not fix it and suggested to reach out to the core team. Not sure if there would be any way to load the post thumbnail in a way that it is not scaled down and the wight and height attributes are matching the picture…?
But probably in one of the next versions this can be considered.
Thx,
Mirko
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘CLS issue with the_post_thumbnail’ is closed to new replies.