[wp-trac] [WordPress Trac] #59115: Use defer loading strategy for block view scripts

WordPress Trac noreply at wordpress.org
Wed Aug 16 17:40:02 UTC 2023


#59115: Use defer loading strategy for block view scripts
--------------------------+--------------------------------------
 Reporter:  westonruter   |       Owner:  westonruter
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  6.4
Component:  Editor        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript, performance
--------------------------+--------------------------------------

Comment (by westonruter):

 @gziolo I opened a [https://github.com/WordPress/wordpress-
 develop/pull/5021 PR] to address this, but I only see
 `register_block_script_handle()` getting called with the `$field_name` of
 `viewScript`, both in core and when using Genesis Blocks and my own
 [https://wordpress.org/plugins/syntax-highlighting-code-block/ Syntax-
 highlighting Code Block].

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


More information about the wp-trac mailing list