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

WordPress Trac noreply at wordpress.org
Mon Mar 5 22:13:55 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 azaozz):

 Replying to [comment:44 mor10]:
 > While HTTP/2 is still emerging, it is rapidly doing so, and the uptick
 will increase once Chrome and Firefox release their "this site is not
 secure" flags and GDPR come into effect. The way WordPress handles scripts
 today is not the way the web of right now handles scripts, nor the way
 modern browsers and servers want us to handle scripts.

 I agree, in principle. But then why do this a teaspoon at a time? Lets
 implement it "properly" for all current scripts.

 Currently there are few tickets that touch on some parts of
 updating/refactoring script-loader. IMHO best would be to combine them and
 really refactor it. Implement HTTP/2 + `defer`, output all in the head,
 etc. etc. Ideally this should be done before Gutenberg lands in core.

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


More information about the wp-trac mailing list