[wp-trac] [WordPress Trac] #12009: Add support for HTML 5 "async" and "defer" attributes

WordPress Trac noreply at wordpress.org
Fri May 12 15:01:08 UTC 2023


#12009: Add support for HTML 5 "async" and "defer" attributes
-------------------------------------------------+-------------------------
 Reporter:  Otto42                               |       Owner:  10upsimon
     Type:  enhancement                          |      Status:  assigned
 Priority:  high                                 |   Milestone:  6.3
Component:  Script Loader                        |     Version:  4.6
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests 2nd-        |     Focuses:
  opinion                                        |  performance
-------------------------------------------------+-------------------------

Comment (by lkraav):

 > > Personally, I'm finding @westonruter's rationale for allowing
 developers to use async scripts as dependencies and trusting them to do so
 responsibly fairly convincing. If we can agree there, then we can address
 additional edge cases and nuances.
 > Yea, shifting the decisions to plugin/theme developers seem to make
 sense here (assuming good inline docs).

 I would trigger `_doing_it_wrong()`, but I'm not up to date on what core
 mandates for its usage policy. Other than that, I've found `_d_i_w()` to
 be a very well working education tool.

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


More information about the wp-trac mailing list