• Resolved trmkr

    (@trmkr)


    Hi,

    I have a CLS issue when I use should_load_separate_core_block_assets filter to reduce css size for core blocks. Inline CSS moves to footer and causes huge CLS score. Do you have any idea how to move inline css to head?

    Thank you
    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t believe you can. This hook allows you to only load CSS for blocks that are in use, but WordPress can’t know what blocks are used on any given page until the page has been rendered, at which point the stylesheets can be only be added to the footer. This is the trade-off.

    Thread Starter trmkr

    (@trmkr)

    Hi Jacob,

    Thank you for this clear explanation.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CLS issue with should_load_separate_core_block_assets’ is closed to new replies.