Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Mayor CLS issues on mobile

  • Hi,
    regarding my topic I went through some of the many posts on your support site – but I could not find a solution. I have 3 main layout shifts on my homepage http://www.webanalytika.de. I ran the test with https://pagespeed.web.dev/. All CLS address text issues container and heading layouts. Due to you have so much experience on this topic how can I fix it?

    Thank you very much

    Regards Oliver

  • Hi there,

    on initial load I see the site is loading with the browser system font and then later when the fonts have loaded those fonts are updated, which can cause layout shift.

    To fix that; you should ensure the FONT DISPLAY property is NOT set to swap and instead set it to auto

  • Hi David,

    thanks for a sunday-help 🙂
    Auto did not change so much leaving 1 CLS. I put the font-settings e.g. Block, etc. Same result – not changing much. Any other ideas?

    And now I have, beside other performance issues, a LCP issue in my first paragraph on this page. How I can reduce that? With images I had this problem and could solve it with reducing the KB of the image – but with text….

    See you

    Oliver

  • The font-display is set to fallback. It looks like you are using a plugin to upload local fonts, can you change that to auto in the plugin?
    https://app.screencast.com/tyBgZYqpa3nQg

  • Hi Ying,
    thanks for help.
    I am using the GP own Font Library where I changed the font-display from swap to auto.
    Before this new feature of yours (the font library) I downloaded the google fonts locally and I followed the procedure how to do it from one of your support threats – I think it was from Leo.
    But after you launched the font library I deleted everything.

    Anyway I have no idea where I can change further the font-display setting but in the font-library itself under Appearance > Font Library | Advanced Options.

    I do not have a plugin for local fonts. Sorry.

  • The stylesheet is called wp-fonts-local, it does not look like from GP.

    And based on the CSS that the theme generated, it does not look like you are using local fonts.

    Any chance you can provide an admin login for us to check the backend?

    Let me know 🙂

  • Sure, see the login data in the private information. Thanks for the help.

  • Hi there,

    It looks like the font-display issue has been resolved and is now set to auto.

    There may be other areas to address in the PageSpeed report, such as reducing the initial server response time. I noticed that no cache plugin is currently used on your site; implementing and properly configuring a caching plugin could improve this.

    Additionally, consider optimizing any third-party scripts loaded on your page. A plugin like Autoptimize can help with this.

  • Hi Alvind,
    thanks for whatever you have done. But unfortunately I still have 1 CLS.
    (And on this page https://www.webanalytika.de/ga4-audit I even have 4 CLS for desktop.)

    Actually I give you now the same answer I already did to David’s response – could you check it further up in this thread, please. Beside 1 CLS I have a LCP issue on the homepage, too.

    Thank you

  • Ok, so changing the font display property did work to fix the Layout Shift it was causing. You will see on page load that no longer do your fonts change after load.

    Now if you look

    I ran several pagespeed tests on the site
    And got various CLS reports from as little as 0.005

    https://app.screencast.com/Bkauc6Ks4oDqr
    https://app.screencast.com/PyPSlZ9NpnovI

    to: 0.047

    https://app.screencast.com/7HxsZOYsfLEec

    Regardless of the CLS score, the same issues are reported under the Avoid Large layout shifts – see here:

    https://app.screencast.com/XYODiPHKoErDq

    All of the resources on the page are flagged as: A late network request adjusted the page layout.
    And this would be related to the Reduce initial server response time and Serve static assets with an efficient cache policy at the top of the report.

    https://app.screencast.com/hWVUjrWdTkmYh

    Recommendations

    Speak to your host about Page Caching on the server. As this will help Reduce initial server response time.

    Use a plugin like PerfMatters to eliminate and defer loading of non critical resources to help Eliminate render-blocking resources.

    Not only will those help with settling the CLS issue they will help with the LCP times.

  • Hi David,

    sorry for the delayed answer.

    I spoke to my host. They told me that opCache is enabled server-side. If I do want MemCached I need to upgrade – which I do not want right now.
    In any case I should install W3 Total Cache, they said.

    Which I did. But then I ran into problems because I disabled Rest Api for experimental reasons. I got a warning of my cookie banner that it could not save users cookie settings because of Rest Api was disabled. I enabled it again but the warning did not go away – only when I deactivated W3 Total Cache all together.
    When I disabled Rest Api I got a page speed score for performance of 100. But all the other scores went dramatically down.
    I deinstalled W3 Total Cache and all the referring files via ftp. I am thinking now to reinstall W3 Total Cache because I got better scores for mobile (before I disabled Rest API).

    Do you have any experience with W3 Total Cache? What do you think.

    Thanks
    Oliver from sunny Berlin

  • I don’t have any direct experience with W3 , only that what I see in this forum.
    But like all cache/optimziation plugins; they require careful configuration or things will generally break.

    If you use it simply for page caching you should see some improvement.
    And then look at the CSS and Script optimizations it offers. But test each setting one at a time to see what difference it makes to the site. Making sure nothing got broken.

    Also you have a YouTube video on your home page, and I don’t thunk W3 offers otpimziations for that. So try this:

    https://en-gb.wordpress.org/plugins/wp-youtube-lyte/

    As a note; the Page Speed Test will sometimes load pages that got cached on the network. So you may need to wait between changes and testing or run a few tests before you see the any changes

  • Like always: great support. Thanks a lot.

  • You’re welcome !

  • Hi David,

    I installed and configured perfmatters. It’s great. All pages have a performance score of 90 or above – but the homepage.
    Here I could not get solved the Avoid large layout shifts issue. I defer and delayed CSS and JS but it did ot help. This was also your recommendation from this thread further up. To increase cache server-side is not option right now.

    Do you have another idea how I will get rid of this warning?

    Thanks a lot.

    Regards Oliver

  • I see a couple of potential issues:

    1. the font-display for the Inter and Cardo fonts is set to fallback – I would recommend changing that to auto

    2. Under the “Avoid large layout shifts ” page speed report, it lists several “A late network request adjusted the page layout” , which Google is citing as the possible cause. The CSS it lists does fluctuate which kind feels like a server concern…. but , have a word with PerfMatters support as those files; if they are critical to rendering the page, should be include in the plugins used CSS.

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