• Resolved sillyfishlearning

    (@sillyfishlearning)


    Hi,

    I noticed I have a high CLS on PagespeedInsights on both mobile and desktop on my posts and pages (but not my homepage).

    I know that this can be caused due to lazy loading but I have excluded 2 images (which should be the maximum above the fold) and I am still getting this issue.

    It seems to be the post title divider and widget sidebar that are causing the issue.

    I’m not sure how to resolve this using Autoptimize. Can you help?

    Many thanks,

    Rebecca

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Can you disable “inline & defer CSS” for a second and re-test to see if the problem is with the critical CSS Rebecca?

    Thread Starter sillyfishlearning

    (@sillyfishlearning)

    Hi,

    I just tried that and cleared all caches and it seemed to do the trick but then of course load time became slower.

    I updated the critical CSS and it seems to all be fine now on desktop but still a CLS on mobile.

    I have a responsive theme so above the fold content is different by device.

    Is there a way for me to improve the CLS for both mobile and desktop?

    Thanks for your help and quick response!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Is there a way for me to improve the CLS for both mobile and desktop?

    Yes, you’ll have to make sure the “above the fold CSS” you enter contains the necessary styles for both. Where/ how did you generate it?

    Thread Starter sillyfishlearning

    (@sillyfishlearning)

    I was using Sitelocity but I have just tried this one: https://jonassebastianohlsson.com/criticalpathcssgenerator/ which has fixed the CLS issue on this page but made a much bigger CLS problem on my homepage.

    There are two problems I’m having:

    1 – Different CSS for different devices.
    2 – Different CSS for different pages.

    Thanks again,

    Rebecca

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Afraid it is normal that CCSS for one page might not be good enough for an other one I’m afraid, hence the “critical CSS” tab (which does require a non-free account at criticalcss.com) to automatically generate “rules” which are used to add the right critical CSS to the right page.

    If however you don’t want to spend money on that and if you are “into PHP”, you can make it work with a limited amount of PHP switching between different CSS with the autoptimize_filter_css_defer_inline filter?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Thread Starter sillyfishlearning

    (@sillyfishlearning)

    I tried the PHP approach and completely broke my website haha! I backed it up so all good but I’m taking this as a sign that I should quit while I’m ahead and pay for Critical CSS.

    Hopefully that will solve the problem!

    Thanks for your help.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘CLS on website after optimization – Not image related’ is closed to new replies.