[wp-trac] [WordPress Trac] #57814: Use `wp_theme_has_theme_json` in `_wp_theme_json_webfonts_handler`

WordPress Trac noreply at wordpress.org
Fri Mar 10 22:25:49 UTC 2023


#57814: Use `wp_theme_has_theme_json` in `_wp_theme_json_webfonts_handler`
---------------------------+------------------------------
 Reporter:  spacedmonkey   |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:  6.0
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  performance
---------------------------+------------------------------

Comment (by flixos90):

 @spacedmonkey I did not, that's a fair point. However, frontend
 performance is probably the most important here. We need to investigate
 why the `wp-template` metric is seeing a slowdown. If we can figure that
 out, I think there is a massive opportunity here.

 The performance win in `wp-before-template` is ~5ms, so if we can avoid
 the `wp-template` slowdown, this would mean a **total performance win of
 ~7%** (~5ms of ~69ms) which would be huge!

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


More information about the wp-trac mailing list