[wp-trac] [WordPress Trac] #56470: viewScript setting does not set front end scripts for dynamic blocks

WordPress Trac noreply at wordpress.org
Wed Aug 31 08:19:48 UTC 2022


#56470: viewScript setting does not set front end scripts for dynamic blocks
-------------------------+-------------------------------------------------
 Reporter:  lovor        |       Owner:  (none)
     Type:  defect       |      Status:  new
  (bug)                  |
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Script       |     Version:  trunk
  Loader                 |
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  ui, javascript, css,
  needs-testing          |  administration
-------------------------+-------------------------------------------------

Comment (by gziolo):

 I agree it's confusing because it doesn't work like that for the `script`
 in `block.json`. The best way to move forward is to allow customizations
 for assets in `block.json` as explained in
 https://core.trac.wordpress.org/ticket/54018#comment:5 and align the
 default behavior that existed for the `script`. This way, block authors
 could still opt in to defer to `render_callback` when the script should
 get enqueued.

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


More information about the wp-trac mailing list