How can I implement lazy loading on Label theme?

How can I implement lazy loading on Label theme?

Sensei_Ryan
Shopify Partner
30 0 15

 

Hello,

 

I’ve been following some instruction I found online but am getting stuck on adding a class to image tag (step 3).

B0184B16-8489-4672-BB12-3796D1D01CD8.jpeg

Does anyone know how to locate the image tag for the theme?

 

 

website: follownoonestore.com

theme: Label

Replies 2 (2)

made4Uo
Shopify Partner
3860 717 1204

Hi @Sensei_Ryan,

 

You need to add loading="lazy" to your img tag. You only add this loading lazy to the image that you want to load later or not on the top of the browser when the browser loads 

<img src="image-link" alt="image-alt" loading="lazy">

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free

Cedcommerce
Shopify Partner
718 76 115

Hello @Sensei_Ryan ,

 

Finding each “img” tag is quite complex as we are using multiple sections or snippets in the Shopify theme. 

To get this issue resolved and implement Lazy loading properly first you need to write a custom code for selecting all “img” tags and then add this attribute loading="lazy" as shown in the below-provided code.

 

<img src="img_url" alt="img_alt" loading="lazy"/>

 

This will properly implement lazy loading. Let us know if you need any help with this.

 

Regards, 

CedCommerce

CedCommerce || Shopify Expert
- Let us know if our reply is helpful for you. Like it.
- Was your question answered? Mark it as an accepted solution.
- For further discussion contact: Email ID- apps@cedcommerce.com
- Whatsapp:- Join Here