Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
please someone help me in adding lazy loading on Debut theme. I have added lazysizes.min.js Asset but couldn't find it in Theme . liquid File . i just find lazysizes.js
Hi @has- ,
You can try copying the code of lazysize.min.js, paste it at the end of lazysizes.js
Hope it can help you,
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
Hi @has-
Welcome to the Shopify Community!
I am Alex From MS Web Designer (Top Rated Shopify Certified Experts and eCommerce Consultant from Singapore ) I helped 1000+ Shopify Store owners to Optimize their website loading speed for both mobile and desktop and increase their conversion rate.
I will love to help you with some experts feedback here
- Kindly Provide your Store Url,
- Also Mention Which Shopify theme you are using
- How many Apps you are using?
Note: If your store is protected with ‘store Font password’ please Send it here or DM me.
If you have any concerns feel free to ask me!
Regards,
Alex
Hi @has-
To add lazy loading in your theme, you can follow these steps -
1. Spend sometime and read this documentation carefully.
2. Then upload the lazysize.min.js in your theme’s asset folder.
3. Include this script in theme.liquid [inside <head> tag] {{‘lazysizes.min.js’ | asset_URL | script_tag}}
4. Then apply all the changes for images and other files based on documentation.
For eg,
<img
data-sizes=”auto”
data-src=”image2.jpg”
data-scrset=”image1.jpg 300w,
Image2.jpg 600w,
Image3.jpg 900w” class=”lazyload” />
Try doing this and we are sure you will be able to add lazy loading in your theme. In case you need assistance, feel free to drop us a message and one of our experts will assist you with it.
Hope it helps!
Thank You,
Team CedCommerce.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024