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

WordPress Trac noreply at wordpress.org
Thu Apr 9 15:46:29 UTC 2020


#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 apedog):

 I don't think there is going to be a problem with a new {{{$attributes}}}
 parameter.
 It does not break back-compat.
 And ''should'' be compatible with other {{{script}}} tag attributes, like
 {{{type="module"}}} etc.

 Reading through this ticket, I don't think the implementation/patches are
 the bottle-neck. This seems to be blocked on the API. API needs to stay
 backward-compatible AND future-proof (ie. allow not only for defer/async
 but also for other attributes that might be relevant to the HTML script
 tag). No one's going to look at the patches as long as an API is not
 agreed upon.

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


More information about the wp-trac mailing list