[wp-trac] [WordPress Trac] #59863: Hundreds of fonts loaded via wp-fonts-local on front-end and dashboard

WordPress Trac noreply at wordpress.org
Thu Nov 9 11:35:18 UTC 2023


#59863: Hundreds of fonts loaded via wp-fonts-local on front-end and dashboard
--------------------------+-----------------------------
 Reporter:  rghedin       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  6.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 After upgrading to 6.4 (issue remains in 6.4.1), my site started loading
 tons (+600) fonts on both front-end and admin dashboard.

 They are loaded on `<head>`, via an inline style tag with `wp-fonts-local`
 class, summoning fonts with @font-face.

 I switched themes and the issue remains regardless.

 Was able to avoid loading all these fonts with this code in
 `functions.php`:

 `remove_action( 'wp_head', 'wp_print_font_faces', 50 );`

 It's possible to witness it right now in my staging site: https://staging-
 02d9-rghedin.wpcomstaging.com

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59863>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list