[wp-trac] [WordPress Trac] #49175: Optimize font-loading techniques for all WordPress Twenty themes

WordPress Trac noreply at wordpress.org
Sat Feb 25 20:47:30 UTC 2023


#49175: Optimize font-loading techniques for all WordPress Twenty themes
---------------------------------+------------------------------
 Reporter:  mvanturnhoutziggonl  |       Owner:  (none)
     Type:  enhancement          |      Status:  new
 Priority:  normal               |   Milestone:  Awaiting Review
Component:  Bundled Theme        |     Version:  5.3.2
 Severity:  normal               |  Resolution:
 Keywords:  2nd-opinion          |     Focuses:  performance
---------------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:   => 2nd-opinion


Comment:

 #55985 replaces Google Fonts URLs, which would make `preload` less
 valuable than before.

 Choosing precisely which font files everyone would need could be tricky,
 both with different character subsets and with browser support of WOFF2
 vs. WOFF. I opened #57807 in case the (previously) existing translations
 could be valuable to developers who want to use `preload` in individual
 sites or plugins. However, I'm not sure it's worth trying that in the
 themes now.

 For the `font-display` property, I agree with the decision on #47282 to
 make `fallback` the default choice (at least for Twenty Twelve to Twenty
 Seventeen). The `swap` value is better for something where the font is
 highly important, such as a logo, and site owners did not select these
 fonts themselves.

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


More information about the wp-trac mailing list