[wp-trac] [WordPress Trac] #34292: Support for DNS Prefetching & Prerender
WordPress Trac
noreply at wordpress.org
Wed Jun 29 19:35:29 UTC 2016
#34292: Support for DNS Prefetching & Prerender
--------------------------------------+-----------------------------
Reporter: bhubbard | Owner: voldemortensen
Type: feature request | Status: closed
Priority: normal | Milestone: 4.6
Component: Script Loader | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: performance
--------------------------------------+-----------------------------
Changes (by ocean90):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"37920"]:
{{{
#!CommitTicketReference repository="" revision="37920"
Script Loader: Introduce an API to register resource hints.
Resource hints allow browsers to prefetch specific pages or render them in
the background to perform DNS lookups or to begin the connection handshake
(DNS, TCP, TLS) in the background.
By default, `wp_resource_hints()` prints hints for "s.w.org" (the
WordPress.org CDN) and for all scripts and styles which are enqueued from
external hosts.
Use the `wp_resource_hints` filter to add custom domains and URLs for
`dns-prefetch`, `preconnect`, `prefetch` or `prerender`.
Props voldemortensen, swissspidy.
Fixes #34292.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34292#comment:43>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list