CLS issue on sidebar with component

Hello,

I’m using a shortcode to a component to control my wordpress side bar and its giving me CLS issues. When i remove the component, then the CLS issue goes away.

I’ll put the page in the description but can you tell me why the component would be giving a huge layout shift? Note; I did set the max of the div to 300px which is the width of my sidebar.

Hey @fxground,

I see your images in the sidebar are lazy loaded. That’s one reason for CLS. Try removing the images in your side bar and test again. Remove elements in your sidebar to test in general.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.