I've gotten LazyLoad to work on my other pages except product-template.liquid thumbnail section.
Solved! Go to the solution
Welcome to the Shopify Community!
This is Syed Mustafa a professional Shopify Developer. As I'm sure you well know, page speed has become a factor for ranking in the search engines. That's why if you're investing lots of time and money into getting the rankings you deserve, you shouldn't be blowing it by having a slow website.
Longer load times have also been shown to negatively affect conversions.
Drop your reply at Syedmustafanadeem99@gmail.com and let me fix it.
When I use the Google PageSpeed Insights for
I get Defer Offscreen Images
So the lazyload I put in isn't working.
This is an accepted solution.
Aibek is here from Growavelabs Agency.
Hope this message finds you well and safe.
First, you use lazysizes.js to defer loading of hidden images. The problem is that this library thinks the images are in the visible area of the web page. Therefore, the pictures are loaded immediately. But in reality they are hidden from the side. When users click on product thumbnails, the images are shown. The Pagespeed Insights algorithm can figure this out.
Alternatively, you can manually adjust the lazysizes. To do this, you need to lower the expand option. Below will be the code, try to paste immediately after connecting the js file lazysize.js to theme.liquid