[wp-trac] [WordPress Trac] #47282: Use font-display for Google Fonts in core themes

WordPress Trac noreply at wordpress.org
Wed May 15 16:41:53 UTC 2019


#47282: Use font-display for Google Fonts in core themes
---------------------------+-----------------------------
 Reporter:  westonruter    |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:
 Severity:  normal         |   Keywords:  has-patch
  Focuses:                 |
---------------------------+-----------------------------
 Google Fonts just landed a [https://github.com/google/fonts/issues/358
 long-requested ability] to specify the `font-display` property for the
 `@font-face` rules they serve. This allows fonts to be served with `font-
 display:swap` which prevents FOIT (Flash Of Invisible Text) on slow
 connections. Given that the core themes have fallback fonts in place for
 when the Google Font is not available, it seems they should certainly opt
 for `swap` or `fallback`.  For more info, see [https://css-tricks.com
 /font-display-masses/ `font-display` for the Masses] and [https://web.dev
 /avoid-invisible-text avoiding invisible text during font loading].

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


More information about the wp-trac mailing list