[wp-trac] [WordPress Trac] #37387: Resource hinting: Do not preconnect to emoji CDN.
WordPress Trac
noreply at wordpress.org
Thu Aug 18 08:43:34 UTC 2022
#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: 4.6
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch commit | Focuses:
---------------------------------------------+----------------------
Comment (by audrasjb):
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/37387#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list