Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Good day,
can someone please assist me - in my shopify code it gives me this msg:
use the native loading= "lazy" attribute instead of lazysizes shopify
Solved! Go to the solution
This is an accepted solution.
Hello Lizanne,
You have to add the attribute loading='lazy' in img tag. i.e <img src="a.jpg" loading="lazy">.
Although I recommend using loading="eager" for LCP images to improve site speed.
If you find my suggestion difficult to implement send an email at rajvee.kadchha@mlveda.com
This is an accepted solution.
Hello Lizanne,
You have to add the attribute loading='lazy' in img tag. i.e <img src="a.jpg" loading="lazy">.
Although I recommend using loading="eager" for LCP images to improve site speed.
If you find my suggestion difficult to implement send an email at rajvee.kadchha@mlveda.com
Good day Rajvee,
Thank you.
I have changed it to eager. Can you maybe please help me, if i change it my collection images is blurry. can i do something regarding this? It now longer is clear like it was before i change from lazyload to eager.
Thank you for contacting me.
Would you please share your collection page URL, we will check and let you know our feedback in 24 hours.
I suggested that you add the attribute loading="eager" rather than a class.
Also if you don't mind, can you please share your mail id, so we can take this discussion there as it will be long discussion.
thank you, I have send you a private msg.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025