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

WordPress Trac noreply at wordpress.org
Thu Mar 15 06:52:52 UTC 2018


#12009: Add support for HTML 5 "async" and "defer" attributes
---------------------------+-----------------------------
 Reporter:  Otto42         |       Owner:  azaozz
     Type:  enhancement    |      Status:  reopened
 Priority:  normal         |   Milestone:  Future Release
Component:  Script Loader  |     Version:  4.6
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+-----------------------------

Comment (by mihai2u):

 I concur with weston's train of thought that doing this type of validation
 seems to go beyond the scope of this ticket.
 If you're setting up async, you should know what you're doing and what
 you're applying it to.

 There's a different path this can go in as well...
 If you're deferring a script which is usually setup as a dependency (let's
 think jquery), it would be nice to defer all of the scripts that have it
 as a dependency, as that will keep everything in functioning order even
 when one more plug-in is added which has a jQuery dependency, instead of
 it breaking.
 But that's a whole other story altogether, we can find improvements to
 these in time. It's already been 8 years!!! since this ticket was opened,
 we should get a simple implementation in.

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


More information about the wp-trac mailing list