I was able to solve a significant portion, 0.8 to 0.2, of CLS by adding a min-height to the Header in the Global Header. Not sure if that was the correct way to solve it but it seems to work. If that's right, the lesson is that simply adding height and width and an aspect ratio style element won't cover it all.
I am still trying to address the last 0.1 or more where I am seeing a logo shift. The global header is nearly stock Colossus. The logo for this store has more height than the demo for example. The logo's height and width are set, but the container is appearing collapsed until it's time to render the logo. (btw: there are is a tag line below the logo that illustrates the shift ). The img tag has width/height but space isn't allocated. I've attempted to use a min-height for the anchor tag (the logo is also a link) and the div the image resides in. Again, not sure if I'm doing this correctly. I am still wondering how to make sure space is allocated so it passes Google's CLS calculator.
Thanks,
Scott
I am still trying to address the last 0.1 or more where I am seeing a logo shift. The global header is nearly stock Colossus. The logo for this store has more height than the demo for example. The logo's height and width are set, but the container is appearing collapsed until it's time to render the logo. (btw: there are is a tag line below the logo that illustrates the shift ). The img tag has width/height but space isn't allocated. I've attempted to use a min-height for the anchor tag (the logo is also a link) and the div the image resides in. Again, not sure if I'm doing this correctly. I am still wondering how to make sure space is allocated so it passes Google's CLS calculator.
Thanks,
Scott
Comment