[wp-trac] [WordPress Trac] #34292: Support for DNS Prefetching & Prerender
WordPress Trac
noreply at wordpress.org
Tue Oct 13 20:24:48 UTC 2015
#34292: Support for DNS Prefetching & Prerender
---------------------------+-----------------------------
Reporter: bhubbard | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: trunk
Severity: normal | Keywords:
Focuses: performance |
---------------------------+-----------------------------
I would like to see WordPress improve support for DNS Prefetching.
I have written several plugins and themes for clients, and sometimes I
want to prefetch various resources for each. At the same time other
plugins or themes may try prefetching the same url as well, or I have
multiple plugins that want to prefetch the same domain. Having the ability
for developers to register and enqueue prefetch dns urls would be great.
I'm thinking this might work similar to scripts and stylesheets:
{{{
wp_register_dns_prefetch();
wp_enqueue_dns_prefetch();
}}}
{{{
wp_register_prefetch();
wp_enqueue_prefetch();
}}}
{{{
wp_register_prerender();
wp_enqueue_prerender();
}}}
There are several plugins out there already that offer input boxes to
create DNS Prefetch, and Jetpack now has a DNS Prefetch for the
urls/resources it loads on a install.
Useful Links:
https://www.chromium.org/developers/design-documents/dns-prefetching
https://jack.ofspades.com/prefetching-preloading-and-prerendering-content-
with-html/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34292>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list