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

WordPress Trac noreply at wordpress.org
Mon Mar 5 07:22:22 UTC 2018


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

Comment (by gziolo):

 Can we also include the support for `nomodule` and `type.module` when
 dealing with other `script` attributes? I think there are even more. See
 https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script. I think
 that support for ES6 modules (https://hacks.mozilla.org/2015/08/es6-in-
 depth-modules/) would open some great ways to serve smaller bundles for
 developers writing their code with the latest language features. It still
 limited to a small number of browsers, but it has this `nomodule` fallback
 so it's more than okey to have it available as a progressive enhancement.

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


More information about the wp-trac mailing list