Online store performance and site speed optimization
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
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024