[Resolved] CLS high on desktop but can’t replicate it

Home Forums Support [Resolved] CLS high on desktop but can’t replicate it

Home Forums Support CLS high on desktop but can’t replicate it

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1678492
    Laurentiu

    Hi everyone,
    I switched to GeneratePress about a month ago and I think it is a great theme.
    I have a small issue that I can’t fix, after I switched to GeneratePress I started to get notifications in Google Search Console about high CLS on desktop. When I run it I get everything green, I can’t see any CLS but Google says on 30% of visits there is a high CLS.
    Here is a screenshot with GSC: Google Search Console screenshot
    And the analysis is here.

    The website is https://nutritioapp.com

    Do you have any idea about what I can do to fix it?

    #1678563
    David
    Staff
    Customer Support

    Hi there,

    could you try adding this CSS – then i can check the site to see if this resolves the issue:

    .main-navigation ul ul {
      height: auto;
      left: unset;
    }
    #1678572
    Laurentiu

    Thank you David. I added it and cleared the cache.
    Have you been able to replicate the CLS on your end?

    #1678617
    David
    Staff
    Customer Support

    Well thats annoying – looks like the hover transform that floats the nav element up is also a CLS trigger – can you temporarily remove this CSS so i can check:

    .main-navigation .main-nav ul li:hover > a {
        transform: translate3d(0, -3px, 0);
    }
    #1678621
    Laurentiu

    It is done. Could you please check now?

    #1678629
    David
    Staff
    Customer Support

    Looks like the CSS have been cached – can you make sure its been removed and clear your cache plugins.

    #1678635
    Laurentiu

    I can see the css I added, but it was added inline in the html, not in a separated file. Could you see it now? I also cleared the caches again.

    #1678973
    David
    Staff
    Customer Support

    I need that CSS removed so i can test if that is causing an issue.

    #1678987
    Laurentiu

    It is removed.

    #1679120
    David
    Staff
    Customer Support

    not sure if its a cache thing bit i am still seeing this in Customizer > Additional CSS:

    /* navigation hover effect */
    
    .main-navigation .main-nav ul li > a {
    	transition: transform 500ms ease-in-out;
    }
    
    .main-navigation .main-nav ul li:hover > a {
    	transform: translate3d(0, -3px, 0);
    }

    Thats the last piece that seems to creating very minor CLS issues on the menu item with the submenu. Without that CSS the issue goes away.

    Other than that the only other element i can see causing CLS is the chat bot option – when clicked it counts quite a large CLS reading.

    #1679393
    Laurentiu

    Thank you very much, David. Your support was amazing.
    It is fixed now, I am looking for a solution regarding the chat.

    #1679820
    David
    Staff
    Customer Support

    Thats great to hear – glad to be of help!

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.