Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I've gotten LazyLoad to work on my other pages except product-template.liquid thumbnail section.
Solved! Go to the solution
This is an accepted solution.
Hi SeaSpray,
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
The images have lazyloading enabled already.
When I use the Google PageSpeed Insights for
https://seasprayjewelry.com/products/sterling-silver-freshwater-pearl-solitaire-ring
I get Defer Offscreen Images
So the lazyload I put in isn't working.
Any suggestions?
Thanks
This is an accepted solution.
Hi SeaSpray,
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
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024