[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 Sep 20 19:54:35 UTC 2016


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

Comment (by leobaiano):

 Thank you for your help @superpoincare and @peterwilsoncc !

 I searched google sources records on issues Twenty Eleven and Twenty Ten
 and not found, then not added the preconnect these issues, I correct?

 In other issues I did the inclusion in functions through the filter
 `wp_resource_hints`, and testing to ensure that `wp_style_is will only
 include preconnect for google fonts if the font needs to be charged as
 example: https://github.com/WordPress/WordPress/blob/master/wp-
 content/themes/twentytwelve/functions.php#L446-L448

 I tested on my local installation and preconnect was correctly added hope
 that this time is correct and if not please guide me where I can adjust.

 Thanks again, I'm learning a lot from this experience.

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


More information about the wp-trac mailing list