[wp-trac] [WordPress Trac] #58528: Performance issue in register_block_style_handle
WordPress Trac
noreply at wordpress.org
Thu Jun 15 13:40:30 UTC 2023
#58528: Performance issue in register_block_style_handle
--------------------------+---------------------------
Reporter: spacedmonkey | Owner: spacedmonkey
Type: defect (bug) | Status: assigned
Priority: high | Milestone: 6.3
Component: Editor | Version: 5.8
Severity: normal | Resolution:
Keywords: has-patch | Focuses: performance
--------------------------+---------------------------
Comment (by spacedmonkey):
@flixos90 @joemcgill I have done up with a much simpler solution in
[https://github.com/WordPress/wordpress-develop/pull/4621 #4621]. Avoid
any realpath and file exists. Simple register all the block styles along
all default styles.
This shaves off 11ms off a 156ms page load in my local testing and is much
simpler and less brittle fix.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58528#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list