[wp-trac] [WordPress Trac] #43373: Evaluate Async & Defer for Inline WordPress Admin Scripts
WordPress Trac
noreply at wordpress.org
Tue Feb 20 23:06:56 UTC 2018
#43373: Evaluate Async & Defer for Inline WordPress Admin Scripts
-------------------------------------------------+-------------------------
Reporter: bhubbard | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Script Loader | Review
Severity: normal | Version: trunk
Focuses: javascript, administration, | Keywords:
performance |
-------------------------------------------------+-------------------------
There are many places within WordPress core where script tags are called
inline. I think WordPress performance could benefit greatly if these were
reviewed to see if adding async="async" or defer="defer" could improve
performance. Here are some files and lines examples:
about.php L316
admin-footer.php L110
admin-header.php L77, L198
media.php L253, L474, L573, plus more
Not really a full test, but I ran a quick install and did a global find
and replace within for the following:
{{{
<script type="text/javascript">
<script type="text/javascript" async="async">
}}}
I saw some decent performance improvements, and no obvious broken issues.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43373>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list