Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Some trouble with Lazy Loading or some script blocking it

Solved

Some trouble with Lazy Loading or some script blocking it

ShaheryarJunejo
Tourist
8 0 2

Hello.

 

When viewing collection pages in mobile or mobile view on my browser, the lazy loading seems to get stuck.

 

Examples:

https://thenaturesstore.com/collections/buy-shampoo-products-at-affordable-prices-online-in-pakistan

ShaheryarJunejo_0-1720047358164.png

 

https://thenaturesstore.com/collections/sulphate-free-hair-mask-products-online-in-pakistan

ShaheryarJunejo_1-1720047510614.png

 

 

While this is stuck here, I cannot open the top menu either.

I can click on products and then come back for it to function, alternatively, I can wait a few seconds and then refresh the page for it to load. But if I don't do either, the page is just stuck with 90% transparent images.

 

Any idea if a script is blocking it or something or maybe there is clash? I am using pagefly for my homepage only. 

 

From lighthouse and pagespeed insights, the Largest Contentful Paint element is the problem, it just takes too long to load.

 

Can also be seen in this video.

https://clarity.microsoft.com/shared/recording/84b81274-1b92-40b6-bb82-2e722764466c

 

Any help is much appreciated.

 

Thank you

Accepted Solutions (2)

namphan
Shopify Partner
1824 233 255

This is an accepted solution.

Hi @ShaheryarJunejo,

Please go to Actions > Edit code > Assets > theme.scss.liquid file and paste this at the bottom of the file:

 

.product__image-wrapper--loading {
    -webkit-animation: none;
}

 

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com

View solution in original post

Dan-From-Ryviu
Shopify Partner
10230 2033 2103

This is an accepted solution.

Hi @ShaheryarJunejo 

Your store will get the issue when it has this issue. 

Screenshot 2024-07-04 at 09.34.46.png

You can solve it by adding this code to Online Store > Themes > Customize > Theme settings > Custom CSS

.product__image-wrapper--loading {
-webkit-animation: unset !important;
}

But I recommend you found which is causing script issue to solve it.  

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 6 (6)

namphan
Shopify Partner
1824 233 255

This is an accepted solution.

Hi @ShaheryarJunejo,

Please go to Actions > Edit code > Assets > theme.scss.liquid file and paste this at the bottom of the file:

 

.product__image-wrapper--loading {
    -webkit-animation: none;
}

 

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
ShaheryarJunejo
Tourist
8 0 2

Thank you for the reply Namphan, this solved it.

namphan
Shopify Partner
1824 233 255

Hi @ShaheryarJunejo,

Happy to help you, if you have any further requests, you can contact me 😊

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com

Dan-From-Ryviu
Shopify Partner
10230 2033 2103

This is an accepted solution.

Hi @ShaheryarJunejo 

Your store will get the issue when it has this issue. 

Screenshot 2024-07-04 at 09.34.46.png

You can solve it by adding this code to Online Store > Themes > Customize > Theme settings > Custom CSS

.product__image-wrapper--loading {
-webkit-animation: unset !important;
}

But I recommend you found which is causing script issue to solve it.  

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

ShaheryarJunejo
Tourist
8 0 2

Thank you for the detailed response Dan, this solved it. I will see if I can ask some developer to help with the overall theme as it is quite buggy after addition of some of the apps. The code that you gave me, it will kill all the animations even on the home page right? if I put this in my pagefly main css?

Dan-From-Ryviu
Shopify Partner
10230 2033 2103

Just an animation of images only. 

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.