[wp-trac] [WordPress Trac] #63676: Blocks without rendered content (including blocks via block visibility) still enqueue scripts and styles

WordPress Trac noreply at wordpress.org
Tue Oct 14 23:45:54 UTC 2025


#63676: Blocks without rendered content (including blocks via block visibility)
still enqueue scripts and styles
-------------------------------------+-------------------------------------
 Reporter:  westonruter              |       Owner:  westonruter
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  6.9
Component:  Editor                   |     Version:  5.9
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  javascript, css,
  dev-feedback has-unit-tests        |  performance
-------------------------------------+-------------------------------------

Comment (by dd32):

 @westonruter Yes, I pinned WordPress.org to the prior revision to resolve.
 No harm in doing so.

 While having `wp_head`/`wp_footer` within blocks would normally be
 unexpected, I expected that the enqueued assets would simply therefor get
 attached to that block as the enqueuer and get merged in - but that didn't
 seem to happen.

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


More information about the wp-trac mailing list