Help To Fix LCP issue: longer than 2.5s (mobile)

Zshan

Supreme Member
Joined
Jun 28, 2012
Messages
1,478
Reaction score
406
HI Guys

I don't know how to fix this issue as getting in Search console from last couple of days.

LCP issue: longer than 2.5s (mobile) . around 50 pages showing same errror. how can i fix it?
 
Did you try this?
Code:
https://www.seosandwitch.com/how-to-fix-lcp-issue/
 
Can you share with us the Lighthouse result on these pages? LCP stands for a too long load time. In chrome if you press F12 you can go to lighthouse and do a performance scan that's pretty insightful.
 
Did you try this?
Code:
https://www.seosandwitch.com/how-to-fix-lcp-issue/
fun fact how they can't optimise their own 1st :D:D:D
1619126326470.png
 
I was researching to try to solve this early today, is pretty hard tbh, at least using wordpress.
 
I fixed this problem by re-coding my website from scratch. Took me 2 weeks but I now have a 100% pass rate on my website.

pagespeed.png


googlepage.png


Okay some advice:

1. Google is not testing how fast your page loads. Get that incorrect idea out of your head. Your page could take several minutes to load and still pass the test.

2. Google is testing how fast the first screen of your page loads on a simulated Google Nexus device. A small tablet device.
What's important here is the top of your page that will fit in the screen of a Google Nexus.
If the top of your page is plain text and then the slow to load images are further down, that's completely okay.

3. The biggest issue is likely to be having a large framework that needs to load before you can render the top of the page.

The tricks I used were:

Merged multiple CSS files into one. Less different resources that need to be fetched before rendering starts the better the score.

Converting images to low quality .webp (if they are at the top of the page) then embedding them into the web page as base64 encodes.
You need to use a picture tag for this otherwise it will break on old iOS devices.

<picture>
<source srcset="data:image/webp;base64,JKasdasddasasda full encoding string here" type="image/webp">
<source srcset="/static/img/imagename.png">
<img src="/static/img/imageName.png" alt="Image Alt Text">
</picture>

Dropped client side rendering for server side rendering.

Caching static portions of the page.

For pages that weren't passing, I used a cut down customized CSS file, that works just for that page, which I embedded directly into the page in a <style> tag.

That's how the problem is solved. How in earth you apply this to wordpress I have no idea through.
 
Last edited:
Is thi something you applied on a wordpress blog or a custom coded website? What would you recommend to do on a site that is made on wordpress, like a blog or a site that sells services/products?
 
Last edited:
I see, I removed the quote as per your request. Any plugins you may have tried or know of which might help us all?
 
1. Use gzip compression (a few lines to add in the htacxess file).

2. Put all your scripts in the footer

3. Compress or resize your images

4. Use a good hosting
 
Back
Top