[wp-trac] [WordPress Trac] #63793: Parser-blocking scripts should render last in all cases to speed up page load
WordPress Trac
noreply at wordpress.org
Mon Aug 11 09:07:13 UTC 2025
#63793: Parser-blocking scripts should render last in all cases to speed up page
load
---------------------------+--------------------------------------
Reporter: kkmuffme | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Script Loader | Version: 2.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript, performance
---------------------------+--------------------------------------
Comment (by kkmuffme):
Replying to [comment:1 westonruter]:
> @kkmuffme
>
> > Printing them in the following order, will significantly speed up
reaching DOMContentLoaded, without having any impact on functionality
>
> Have you benchmarked this to demonstrate the performance improvement? I
don't see how this will reduce the time to DCL since it will always be
blocked by `b.js` in your example.
The reason it works is bc the difference between render and parser
blocking and is the basis for defer/async. If this wouldn't improve page
load, then async/defer would be pointless to begin with
Anyway, benchmarks are in :-)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63793#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list