[wp-trac] [WordPress Trac] #53122: Add dns-prefetch resource hint as fallback for Google Fonts preconnect

WordPress Trac noreply at wordpress.org
Fri Apr 30 19:02:08 UTC 2021


#53122: Add dns-prefetch resource hint as fallback for Google Fonts preconnect
---------------------------+--------------------
 Reporter:  westonruter    |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  5.7.2
Component:  Bundled Theme  |    Version:  4.7
 Severity:  normal         |   Keywords:
  Focuses:  performance    |
---------------------------+--------------------
 In #37171 the use of the `preconnect` resource hint was added for core
 themes that use Google Fonts. However, what was missing was also including
 the `dns-prefetch` resource hint. The `preconnect` resource hint is not
 supported by older browsers, so including `dns-prefetch` ensures that
 they'll also get some performance benefit.

 See MDN docs for [https://developer.mozilla.org/en-US/docs/Web/Performance
 /dns-prefetch#best_practices Best Practices] that recommend pairing
 `preconnect` with `dns-prefetch`.

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


More information about the wp-trac mailing list