[wp-trac] [WordPress Trac] #37387: Resource hinting: Do not preconnect to emoji CDN.

WordPress Trac noreply at wordpress.org
Mon Jul 18 00:27:05 UTC 2016


#37387: Resource hinting: Do not preconnect to emoji CDN.
------------------------------------------+--------------------
 Reporter:  peterwilsoncc                 |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  4.6
Component:  Script Loader                 |     Version:  trunk
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+--------------------
Changes (by peterwilsoncc):

 * keywords:   => needs-patch needs-unit-tests


Comment:

 I've been thinking about this overnight, my proposal:

 * punt it from PHP, we don't know if the client requires the PNG or SVG
 CDN at that point. They can differ, although don't by default
 * if the client fails the browser sniff, add a preconnect to the
 appropriate CDN via JS per the spec. The preconnection will happen while
 twemoji runs.
 * per my comment in ##34292, I'm not concerned about the extra connection
 client side but less keen for the sake of the CDN.

 Thoughts?

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


More information about the wp-trac mailing list