Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
How to fix the Cumulative Layout Shift (CLS) poor performance.
I've got the canopy theme and I can't quiet understand it. i've got little coding knowledge but can follow instructions. anyone can help please?
Hi,
Hard to tell for sure without looking at code, but the culprit in CLS is usually an image (or multiple images) that doesn't have specified width and height attributes.
This causes the browser to not account for the image space while it loads the page, until it eventually gets to the image and finds out about its size, by then the browser has to shift things around a bit to fit the image in.
When you run the performance test, the report might include the images that are missing widht and height attributes. If that's the case try adding those values and see if you CLS gets better.
You can find instructions for doing this on YouTube, just do a little digging.
Hope that helps.
I couldn't find information how to add the attributes to the Canopy code. can you give me an example please?
Run this search in Youtube: cls add width height
Adding the width and height attibutes is universal not specific to the Canopy theme. So when you're searching, don't look for results that are specific to the Canopy theme, otherwise, you might not find a whole lot.
If you'd rather not deal with code, look into hiring someone to do it for you if you can. Look in Fiverr, you can get it done pretty cheap.
Hope that helps.
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