All things Shopify and commerce
Hi there - first time poster but long time user of this community board to resolve numerous issues 🙂
Can someone help me to set loading to eager on my Image Banner on my homepage, please? It is currently set to lazy and this is impacting my LCP. URL is https://stripedcircle.com if helpful! I am currently using the Craft theme.
See below snip of Page Insights - but I can't see any code that sets loading to lazy in the image-banner.liquid file...
Any advice gratefully received!
Many thanks, Tim.
Why would you want to remove lazy loading? For users with slow internet speed, lazy loading actually helps because your image will load only if they are needed, instead of loading everything at once. But is it indeed true that removing lazy loading on "above the fold" content actually helps.
I can help you out to check your theme code and remove that if you DM me your access.
Locate the File:
Edit the <img> Tag:
<img src="{{ image | img_url: '1600x' }}" alt="{{ image.alt | escape }}" loading="lazy">
Change it to :
<img src="{{ image | img_url: '1600x' }}" alt="{{ image.alt | escape }}" loading="eager" fetchpriority="high">
Save and Test:
Please go to your Online Store > Themes > Edit code > open Image-banner.liquid file, under this line of code
sizes: sizes,
Paste this code and save file
preload,
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Thanks Dan. Unfortunately, that hasn't improved the load delay on the LCP element. PageSpeed Insights is still showing that image as lazy loading and the load delay is 7,680ms (53% of LCP). Any other thoughts?
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025