[wp-trac] [WordPress Trac] #12009: Add support for HTML 5 "async" and "defer" attributes
WordPress Trac
noreply at wordpress.org
Fri Jan 21 08:35:24 UTC 2022
#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 davilera):
> The inline scripts that are outputted ` after` will also need the defer
attribute.
[https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-
defer According to this], `defer` "must not be used if the `src` attribute
is absent (i.e. for inline scripts)," because "in this case it would have
no effect."
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12009#comment:80>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list