Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Request you to please help me out with the page speed of my website.
LCP: 4.0 s
First Contentful Paint:1.8 s
Total Blocking Time: 480 ms
Speed Index: 3.1 s
The LCP is very high. the first images seems to be lazy loading as per the google report. If I go to theme.liquid in the head, i don't see any lazy setting.
Solved! Go to the solution
This is an accepted solution.
To fix this, you need to make a small modification to your image-banner.liquid file, not theme.liquid.
All you need to do is, in the image-banner.liquid file, find the first line of code that says: "loading: 'lazy'," (without the double quotes) and either delete it or replace 'lazy' with 'eager' (be sure to keep the comma after 'eager'). That'll take care of the Lazy loading issue.
This is an accepted solution.
To fix this, you need to make a small modification to your image-banner.liquid file, not theme.liquid.
All you need to do is, in the image-banner.liquid file, find the first line of code that says: "loading: 'lazy'," (without the double quotes) and either delete it or replace 'lazy' with 'eager' (be sure to keep the comma after 'eager'). That'll take care of the Lazy loading issue.
Thank you John, This helped immensely!
No problem at all. Glad you found it helpful.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024