[wp-trac] [WordPress Trac] #64194: 6.9 Fetch priority can add 10-20 seconds in page load time
WordPress Trac
noreply at wordpress.org
Tue Nov 4 10:02:56 UTC 2025
#64194: 6.9 Fetch priority can add 10-20 seconds in page load time
----------------------------+-----------------------------
Reporter: ciobanucatalin | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: critical | Keywords:
Focuses: |
----------------------------+-----------------------------
In the https://github.com/WordPress/wordpress-develop/pull/9770 pull
request it was added a function
"get_highest_fetchpriority_with_dependents" [https://github.com/WordPress
/wordpress-develop/blob/9f3e07c721e3c278c670827d0de2d2de2c61518b/src/wp-
includes/class-wp-scripts.php#L107].
This is a recursive function that checks priority and if the check was
already done it skip it. The problem is with the checked array that is not
a reference to be the same for all the recursive tree. I encountered a use
case where this function added to my page load 10-20 seconds, after I
added the reference the problem was gone
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64194>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list