[wp-trac] [WordPress Trac] #37171: Implement preconnect to Google fonts in themes twenty eleven, twelve, thirteen, fourteen, fifteen, sixteen

WordPress Trac noreply at wordpress.org
Tue Jul 31 06:35:07 UTC 2018


#37171: Implement preconnect to Google fonts in themes twenty eleven, twelve,
thirteen, fourteen, fifteen, sixteen
--------------------------------------+----------------------------
 Reporter:  superpoincare             |       Owner:  peterwilsoncc
     Type:  feature request           |      Status:  closed
 Priority:  normal                    |   Milestone:  4.7
Component:  Bundled Theme             |     Version:  4.6
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:  performance
--------------------------------------+----------------------------

Old description:

> This ticket https://core.trac.wordpress.org/ticket/34292#comment:31 adds
> support for preconnect to Wordpress.
>
> It might be useful to use it for Google Fonts in themes shipped with
> Wordpress (twenty eleven, twelve, thirteen, fourteen, fifteen, sixteen)
>
> The code can be added in the functions.php of these themes. The HTML
> output should look like:
>
> <link href='https://fonts.gstatic.com' rel='preconnect' crossorigin>

New description:

 This ticket https://core.trac.wordpress.org/ticket/34292#comment:31 adds
 support for preconnect to WordPress.

 It might be useful to use it for Google Fonts in themes shipped with
 Wordpress (twenty eleven, twelve, thirteen, fourteen, fifteen, sixteen)

 The code can be added in the functions.php of these themes. The HTML
 output should look like:

 <link href='https://fonts.gstatic.com' rel='preconnect' crossorigin>

--

Comment (by westonruter):

 Replying to [comment:19 superpoincare]:
 > You might want to do it for Twenty Sixteen as well as from 4.7 it will
 be bundled with WordPress.

 FYI: This got missed from Twenty Sixteen. See #44668.

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


More information about the wp-trac mailing list