[wp-trac] [WordPress Trac] #59462: Blocks: Introduce a way to enqueue view scripts only when needed for interactivity

WordPress Trac noreply at wordpress.org
Wed Aug 28 06:45:04 UTC 2024


#59462: Blocks: Introduce a way to enqueue view scripts only when needed for
interactivity
-----------------------------+-----------------------
 Reporter:  gziolo           |       Owner:  (none)
     Type:  enhancement      |      Status:  assigned
 Priority:  normal           |   Milestone:  6.7
Component:  Editor           |     Version:  6.4
 Severity:  normal           |  Resolution:
 Keywords:  gutenberg-merge  |     Focuses:
-----------------------------+-----------------------

Comment (by luisherranz):

 >  do you think https://github.com/WordPress/gutenberg/pull/58284 could be
 a solution to this ticket?

 I don't think so. Solving this ticket would require us to come up with a
 way to determine when a block has an interactive behavior and which assets
 (CSS, JavaScript) are associated with that behavior to enqueue them.

 > Are there blockers on that PR or is it just a matter of getting back to
 it?

 That PR doesn't have any blockers, as far as I know.

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


More information about the wp-trac mailing list