[wp-trac] [WordPress Trac] #40426: Remove dns-prefetch of s.w.org domain

WordPress Trac noreply at wordpress.org
Thu Aug 18 08:43:34 UTC 2022


#40426: Remove dns-prefetch of s.w.org domain
-------------------------------------------------+-------------------------
 Reporter:  joelhardi                            |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.1
Component:  Emoji                                |     Version:  4.8
 Severity:  minor                                |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit      |     Focuses:  privacy
  assigned-for-commit                            |
-------------------------------------------------+-------------------------
Changes (by audrasjb):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"53904" 53904]:
 {{{
 #!CommitTicketReference repository="" revision="53904"
 Script Loader: Remove default DNS prefetch entry for s.w.org.

 A default DNS prefetch entry for s.w.org was previously included to save a
 few ms in case an emoji is used that is not supported by the browser. It
 appears this use case doesn't justify a prefetch to s.w.org on every
 WordPress website.

 This changesets removes `emoji_svg_url` prefetch from
 `wp_resource_hints()`. It also updates unit tests in
 `Tests_General_wpResourceHints` by removing
 `test_should_have_defaults_on_frontend()` entirely and removing s.w.org
 prefetch from expected output of ten other test functions.

 Plugin authors can use the `wp_resource_hints` filter if they need to re-
 add the DNS prefetch entry for s.w.org.

 Follow-up to [37920], [38122].

 Props joelhardi, superpoincare, jhabdas, garrett-eclipse, sabernhardt,
 SergeyBiryukov.
 Fixes #40426.
 See #37387.
 }}}

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


More information about the wp-trac mailing list