[wp-trac] [WordPress Trac] #53616: Registered block styles should only be rendered when the block exists on a page

WordPress Trac noreply at wordpress.org
Mon Aug 30 15:36:46 UTC 2021


#53616: Registered block styles should only be rendered when the block exists on a
page
-----------------------------------+--------------------------
 Reporter:  aristath               |       Owner:  gziolo
     Type:  defect (bug)           |      Status:  closed
 Priority:  normal                 |   Milestone:  5.8.1
Component:  Script Loader          |     Version:  trunk
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  has-patch fixed-major  |     Focuses:  performance
-----------------------------------+--------------------------
Changes (by desrosj):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51696" 51696]:
 {{{
 #!CommitTicketReference repository="" revision="51696"
 Editor: Conditionally load registered styles for block variations

 In WordPress 5.8 we added the ability to only load styles for blocks when
 these blocks are rendered. However, these optimizations left out block-
 styles that get added using the register_block_style() function/API.

 Props aristath, gziolo.
 Merges [51471] to the 5.8 branch.
 Fixes #53616.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53616#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list