Site logo

Archived topic

How to Improve LCP Score

3 replies · Started by Mini on May 24, 2021

Viewing posts 1–4 of 4

Hello,

Need your help with core web vital score.

When I checked my site on Pagespeed Insight, my score is 99 in desktop and 94 in the Mobile. But in my GSC, all the urls are showing in the Need Improvement section and LCP is showing 3.1 sec in mobile and 2.8 sec in the desktop.

I need to improve my LCP score to make all the urls good.

Can you help me with the same.

I am using WP Rocket plugin for the cache.

Hi there,

amazing how Google comes up with that difference in FCP and LCP - for what is a rather small image.
Bit experimental but you can try the following:

1. Customizer > Layout > Blog --> Featured Images >>> Archives select the Medium size attachment.
2. Then to stop it from outputting any large image in the src-set HTML add this PHP Snippet:

function set_max_srcset_width( $max_width ) {
    $max_width = 300;
    return $max_width;
}
add_filter( 'max_srcset_image_width', 'set_max_srcset_width' );

Let me know.

Hello,

I have been using Medium size attachment from the beginning.However I have added the PHP snippet.But it doesn't showing any improvement in the lab test.

Moreover, I have been face cumulative layout shifting issue in the desktop. Why is it happening. I have attached the screenshot.

Hi there,

I'm not sure I'm seeing a way to improve that much. The image itself is the correct size, and it's not outputting any srcset values that might be interfering. I'm assuming that the image itself has been optimized?

As for CLS, those are tiny values that are likely being caused by your font family swapping from the fallback to the Google font. I don't think you have to worry about this at all.

This archived topic is closed to new replies.