BACK TO DIRECTORY

Simple DNS Prefetch

by andrewmoof

3.7
(3 ratings)

DNS resolution time can lead to a significant amount of user perceived latency. The time that DNS resolution takes is highly variable. Latency delays range from around 1ms (locally cached results) to commonly reported times of several seconds.

DNS prefetching is an attempt to resolve domain names before a user tries to follow a link. This is done using the computer’s normal DNS resolution mechanism. Once a domain name has been resolved, if the user does navigate to that domain, there will be no effective delay due to DNS resolution time. When we encounter hyperlinks in pages, we extract the domain name from each one and resolving each domain to an IP address. All this work is done in parallel with the user’s reading of the page, using minimal CPU and network resources. When a user clicks on any of these pre-resolved names, they will on average save about 200 milliseconds in their navigation (assuming the user hadn’t already visited the domain recently). More importantly than the average savings, users won’t tend to experience the “worst case” delays for DNS resolution, which are regularly over 1 second.

Screenshots

Settings.

Settings.

Page source.

Page source.

Plugin Details

Active Installs
200
Total Downloads
5,672
Version
0.5.2
Requires WP
4.1
Requires PHP
Tested Up To
4.9.31
Added
2017-09-09
Last Updated
2018-06-08 1:41pm GMT

Ratings

5
2
4
0
3
0
2
0
1
1