Site logo

Archived topic

Weird LCP score on homepage

5 replies · Started by Samuel on August 17, 2021

Viewing posts 1–6 of 6

Hi,

I'm working on a client website and I have something weird happening with LCP score (Page Speed Insights) on the homepage.

It gives me a 4s LCP but when looking at it, it's only pointing the larger image on page that is set to be 600px width and weight 54ko (webp)...

What is even stranger is that I have a good LCP score on every other pages and they all have a Header element with large background image...

I don't understand...

If you have any ideas I'm listening !

You'll find URL in private information.

Thanks a lot,
Samuel

Hi there,

What happens if you disable your lazy loader either entirely or just on that image?

Hi David,

Thanks for your reply,

No it does not change anything, still 4s on LCP...

I tried deactivating all plugins except GP premium and GB to see if it was caused by something, but it just dropped LCP to 3,6s...

I tried lot's of different setting in LS cache and EWWW to see if I could fix this but can't find anything working for now.

WP has native lazyloading support built in.
You can disable it using this PHP Snippet:

add_filter( 'wp_lazy_loading_enabled', '__return_false' );

And retest the site to eliminate that as the issue.

Other things to note - that image is over 100kb in size. Probably best to optimize the original image to get a smaller files size.

The other potential issue is the image is only in partial view on Mobile. I have seen the API mess up the LCP times when this is the case, but its pretty random.

Simple fix would be to increase the height of the hero content on mobile, so the image isn't above the fold.

Hi,

We can eliminate du lazy loading as the issue,

I fixed the homepage issue increasing the height of the hero.

Now I come back with same issue on other page... don't know why yesterday scores was good on other pages (maybe a cache story)

I think we can eliminate image weight as exactly same LCP score is happening in a page with main 1440px image hero weighing 60ko and other with main 1440px image hero weighing 200ko...

Sincerely, this website is pretty fast so I don't worry about that, but it's just I don't understand why it's giving me this score on this website, and it's bothering me...

You have a URL to the other page thats showing the issue ?

This archived topic is closed to new replies.