[wp-trac] [WordPress Trac] #58632: Add support for 'async' and 'defer' loading to script that use inline scripts.
WordPress Trac
noreply at wordpress.org
Tue Nov 28 13:35:21 UTC 2023
#58632: Add support for 'async' and 'defer' loading to script that use inline
scripts.
-------------------------------+--------------------------
Reporter: joemcgill | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Script Loader | Version:
Severity: normal | Resolution: maybelater
Keywords: needs-patch close | Focuses: performance
-------------------------------+--------------------------
Comment (by JG Visual):
I agree that adding something into the docs at
https://developer.wordpress.org/reference/functions/wp_add_inline_script/
would be helpful. The content within Make/Core is thorough and clearly
explains the situation, but it's part of a really long post that many
developers likely won't read. I'm also not sure we can assume they'll find
that post if they're starting point is the `wp_add_inline_script()` docs.
Thanks for the back and forth.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58632#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list