Need to disable lazy load for banners in Shoptimized Theme

Need to disable lazy load for banners in Shoptimized Theme

Gustav001
New Member
4 0 0

Hi,

I have done performance testing on my site and looks like I need to disable lazy load for banner image. Particularly on my Mobile version which is showing worse than Desktop. 
I have already deselected lazy load at the Theme level and no diffs. I also included a JS script in the Theme.liquid code file to render banner = "eager" load vs "Lazy". Again no diffs. Please can you suggest a way to address this?

Replies 6 (6)

ProtoMan44
Shopify Partner
510 43 80

@Gustav001 Hey, thanks for posting here.
 can you please share the link to inspect it, thanks.

- A thirsty developer passionate about supporting the community. If you'd like to, you can  

Buy me a Coffee.


- Your Shopify Solution Specialist Get a Quote at

ProtoMan44

 - 

Chat On Whatsapp


Crafting exceptional e-commerce experiences to elevate your online presence. Let's build your success story together!
Gustav001
New Member
4 0 0

@ProtoMan44 - sure.  www.gardensgenie.com.  Thanks.

ProtoMan44
Shopify Partner
510 43 80

@Gustav001 Go to your slide show section file then search loading="lazy" then remove it from img tag .

ProtoMan44_0-1720065894909.png

if it solve you issue so please mark it as solved.

 

- A thirsty developer passionate about supporting the community. If you'd like to, you can  

Buy me a Coffee.


- Your Shopify Solution Specialist Get a Quote at

ProtoMan44

 - 

Chat On Whatsapp


Crafting exceptional e-commerce experiences to elevate your online presence. Let's build your success story together!
Gustav001
New Member
4 0 0

@ProtoMan44 - thank you for your tip. However I can't seem to find the file in which this code sits. Can you name the actual file that I need to open for this code?

I could only find this (slideshow.liquid):

Gustav001_0-1720083749491.png

 

ProtoMan44
Shopify Partner
510 43 80

@Gustav001 yeah. 
use comment , may you want to revert it so you just uncomment it:

{% comment %}loading="lazy"{% endcomment %}

like this 

- A thirsty developer passionate about supporting the community. If you'd like to, you can  

Buy me a Coffee.


- Your Shopify Solution Specialist Get a Quote at

ProtoMan44

 - 

Chat On Whatsapp


Crafting exceptional e-commerce experiences to elevate your online presence. Let's build your success story together!
Gustav001
New Member
4 0 0

@ProtoMan44 - thanks again. I commented it out but seems hasn't made a difference to my page loading speed. The banner image is below 100Kb size already. But thanks for your help!