[wp-trac] [WordPress Trac] #33210: Add a preconnect header along with emoji settings JS

WordPress Trac noreply at wordpress.org
Thu Jul 30 23:30:18 UTC 2015


#33210: Add a preconnect header along with emoji settings JS
-------------------------+----------------------------
 Reporter:  pento        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Future Release
Component:  General      |    Version:  4.2
 Severity:  normal       |   Keywords:  emoji
  Focuses:  performance  |
-------------------------+----------------------------
 Adding this to the header along with the `_wpemojiSettings` script would
 tell browsers that support it (currently Chromium trunk and Firefox) to
 pre-connect to the CDN, getting DNS lookup and SSL negotiation out of the
 before it's actually needed.

 On my connection, this was ~90ms, which would be saved on the time from
 `DOMContentLoaded` to the first emoji render.

 `<link rel="preconnect" href="https://s.w.org">`

 https://w3c.github.io/resource-hints/#preconnect

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


More information about the wp-trac mailing list