[wp-trac] [WordPress Trac] #12009: Add support for HTML 5 "async" and "defer" attributes
WordPress Trac
noreply at wordpress.org
Fri Mar 16 11:08:30 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 nikolay.yordanov):
When this is implemented, core inline scripts should be refactored, so
that they do not depend on other scripts before DOMContentLoaded. For
example, this won't work if jquery.js is deferred:
https://core.trac.wordpress.org/browser/trunk/src/wp-includes/script-
loader.php#L1286
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12009#comment:60>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list