• Resolved Testerr

    (@raphaelkoning)


    Hello, I asked about CLS before and managed to improve it but I still have the other CLS problem I mentioned (a bit different) and it really needs to be fixed.

    If I put the critical CSS in the functions.php, the CLS isn’t the same as when I put it in Autoptimize inline and defer. Putting the same code in functions.php always results in a worse CLS.
    I’ve rechecked many times, cleared cache, the exact same results occur.

    The problem can show up in the one put in Autoptimize too (rarely) but then all I have to do is disable and re-enable the inline and defer, clear cache, and POOF problem fixed. The one put in functions.php stays high CLS no matter how many times I clear all cache.

    And as I’m thorough, I rechecked many times, regenerated code, and tested all pages. The CLS in functions.php is always worse.

    • This topic was modified 3 years, 2 months ago by Testerr.
    • This topic was modified 3 years, 2 months ago by Testerr.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Afraid I have absolutely no idea Raphael .. :-/

    Thread Starter Testerr

    (@raphaelkoning)

    Ok, what I would like to do then is exclude the home page and other pages from being affected by inline and defer. I know how to exclude pages from Autoptimize entirely but how do I exclude pages from being affected only by inline and defer?

    In other words, I’d like only future posts to be inlined and deferred, the rest should be disabled.

    • This reply was modified 3 years, 2 months ago by Testerr.
    • This reply was modified 3 years, 2 months ago by Testerr.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    You should be able to cook something up (as in; write code) with the autoptimize_filter_css_defer filter 🙂

    Thread Starter Testerr

    (@raphaelkoning)

    No shortcuts huh

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    no, this requires a couple of lines of PHP really to disable “inline & defer” really, no way around it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Other CLS Problem’ is closed to new replies.