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

WordPress Trac noreply at wordpress.org
Wed Jul 20 18:18:31 UTC 2016


#37387: Resource hinting: Do not preconnect to emoji CDN.
---------------------------------------------+----------------------
 Reporter:  peterwilsoncc                    |       Owner:  ocean90
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.6
Component:  Script Loader                    |     Version:  trunk
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  good-first-bug has-patch commit  |     Focuses:
---------------------------------------------+----------------------
Changes (by ocean90):

 * owner:   => ocean90
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38122"]:
 {{{
 #!CommitTicketReference repository="" revision="38122"
 Script Loader: Use `dns-prefetch` for the Emoji CDN.

 * `preconnect` will be potentially pretty heavy on the CDN. With the
 Unicode 9.0 emoji update, almost all browsers will trigger the
 `preconnect`.
 * `preconnect` only opens one connection, but `s.w.org` is HTTP/1.1, so
 the browser will use the preconnected connection for the first emoji, then
 it has to open new connections for subsequent emoji.

 Also use the same URL as we use for the `emoji_svg_url` filter. This will
 print the hint for the correct CDN in case someone uses a custom CDN.

 Props peterwilsoncc.
 Fixes #37387.
 }}}

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


More information about the wp-trac mailing list