[wp-trac] [WordPress Trac] #47322: scenario based-bug in the file load-style.php

WordPress Trac noreply at wordpress.org
Thu Aug 14 09:30:44 UTC 2025


#47322: scenario based-bug in the file load-style.php
---------------------------+------------------------------
 Reporter:  asimbaki       |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:  5.2
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:
---------------------------+------------------------------

Comment (by jonsurrell):

 Reviewing the [https://core.trac.wordpress.org/browser/tags/6.8.2/src/wp-
 admin/load-styles.php code of load-styles.php] and
 [https://core.trac.wordpress.org/browser/tags/6.8.2/src/wp-admin/load-
 scripts.php for load-scripts.php as well], this does seem like a
 reasonable optimization.

 - It appears that all data for the headers is ready to be sent before
 processing the styles or scripts.
 - It appears that no additional processing happens after the loop.

 Instead of concatenating all of the styles/scripts into a string, ''then''
 printing the entire string at once, each chunk can be printed to be sent
 in the response.

 @asimbaki, are you interested in preparing a patch or PR on
 https://github.com/wordpress/wordpress-develop/?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47322#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list