• Resolved Guillermo

    (@guillermo77)


    Maybe is possible make one module for reduce the css library:

    wp-includes/css/dist/block-library/style.min.css?ver=6.7.1

    Google say me that I use maybe 0.7kb of 15kb.

    I think the 90% of posts use headers, paragraph, gallery image, list, etc, no more

    If you can match the class in the post with file css, maybe is possible inject the style in the post, we can have 100% in google, reduce the block render (important) and kb unnecessary

    Can be good makethis without use one online or pay service, like the image prioritizer.

    I hope can be possible 🙂

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Weston Ruter

    (@westonruter)

    I assume you’re using a Classic Theme as opposed to a Block Theme? If so, you can opt-in to splitting up that CSS file via the following plugin code:

    add_filter( 'should_load_separate_core_block_assets', '__return_true' );

    Please see the introductory block post.

    For Classic Themes, however, this introduces a risk for a flash of unstyled content or that the style rules will apply unexpectedly since some stylesheets will begin to be rendered in the footer.

    Now, is there a possibility we could introduce a Performance Lab plugin for doing this automatically, while also ensuring that styles are all loaded in the HEAD in the expected order. As you suggest, it could operate in a similar way as Image Prioritizer. I’ve opened an issue to explore further.

    • This reply was modified 1 month, 2 weeks ago by Weston Ruter.
    Thread Starter Guillermo

    (@guillermo77)

    I use generatepress theme, is faster, but like reduce or eliminate that file!

    Thank you!

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