WordPress.org

Make WordPress Core

Opened 8 weeks ago

Last modified 8 weeks ago

#52620 new enhancement

Add `path` data to block stylesheets to allow improving their loading method

Reported by: aristath Owned by:
Milestone: 5.8 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: performance Cc:

Description

In Gutenberg we recently merged PR https://github.com/WordPress/gutenberg/pull/28358 to improve loading stylesheets for blocks.
As noted in comment https://github.com/WordPress/gutenberg/pull/28358#commitcomment-46742341 we need to also tweak the register_block_style_handle function to allow 3rd-party blocks to take advantage of these improvements.

Change History (3)

#1 @SergeyBiryukov
8 weeks ago

  • Milestone changed from Awaiting Review to 5.8

#2 @prbot
8 weeks ago

aristath commented on PR #1035:

Nice, thank you for starting this PR. I think we should extend existing unit tests to cover this new style data.

Done in https://github.com/WordPress/wordpress-develop/pull/1035/commits/70f57cf5f0bc0548e08a280325774e29677220be 👍

#3 @prbot
8 weeks ago

gziolo commented on PR #1035:

Good, it should be fine to land as soon as the release process for WP 5.7 is finished.

Note: See TracTickets for help on using tickets.