[wp-trac] [WordPress Trac] #12009: Add support for HTML 5 "async" and "defer" attributes
WordPress Trac
noreply at wordpress.org
Fri Apr 14 19:18:57 UTC 2017
#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 georgestephanis):
Personally I'd prefer not to have the defer / async as arguments in the
register/enqueue script functions, but require a `wp_script_add_data()`
call afterwards to flag it on -- the same way we do for rtl support.
Quick tangential gist I threw together for testing of something related,
if anyone wants to play with deferring now:
https://gist.github.com/georgestephanis/2a84bc55ad23f4dec2cf2464109add59
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12009#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list