[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
Thu Jul 22 08:36:26 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.9
Component:  Script Loader  |     Version:  5.8
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:  performance
---------------------------+--------------------------
Changes (by gziolo):

 * owner:  (none) => gziolo
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51471" 51471]:
 {{{
 #!CommitTicketReference repository="" revision="51471"
 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.
 Fixes #53616.
 }}}

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


More information about the wp-trac mailing list