Title: Simple DNS Prefetch
Author: andrewmoof
Published: <strong>2017 年 9 月 9 日</strong>
Last modified: 2018 年 6 月 8 日

---

搜索插件

![](https://ps.w.org/simple-dns-prefetch/assets/banner-772x250-rtl.jpg?rev=1727211)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/simple-dns-prefetch/assets/icon-256x256.jpg?rev=1727211)

# Simple DNS Prefetch

 作者：[andrewmoof](https://profiles.wordpress.org/andrewmoof/)

[下载](https://downloads.wordpress.org/plugin/simple-dns-prefetch.zip)

 * [详情](https://cn.wordpress.org/plugins/simple-dns-prefetch/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-dns-prefetch/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/simple-dns-prefetch/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/simple-dns-prefetch/#developers)

 [支持](https://wordpress.org/support/plugin/simple-dns-prefetch/)

## 描述

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.

## 屏幕截图

 * [[
 * Settings.
 * [[
 * Page source.

## 安装

 1. Upload plugin file through the WordPress interface.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Use the Settings->Simple DNS Prefetch screen to configure the plugin.

## 常见问题

  Installation Instructions

 1. Upload plugin file through the WordPress interface.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Use the Settings->Simple DNS Prefetch screen to configure the plugin.

  How do I use the plugin?

Go to Settings » Simple DNS Prefetch and enter any domains you want to be prefetched.
Make sure the “Disable” checkbox is unchecked.

## 评价

![](https://secure.gravatar.com/avatar/634e0f1f46a8e9c004252bf760e9491df0392d41a246d2c1cc97ae724ed5adfc?
s=60&d=retro&r=g)

### 󠀁[Simple and works!](https://wordpress.org/support/topic/simple-and-works-164/)󠁿

 [WP Damon](https://profiles.wordpress.org/wpdamon/) 2019 年 5 月 16 日

After installing and adding my domains, the dns-prefetch syntax appears in the code.
Works exactly as advertised!

![](https://secure.gravatar.com/avatar/d6499e15c7ebe0b88d18d441a03689724c5962bd5ebf75f5f81fd32b6ba67e53?
s=60&d=retro&r=g)

### 󠀁[Работает свое дело делает](https://wordpress.org/support/topic/%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%b0%d0%b5%d1%82-%d1%81%d0%b2%d0%be%d0%b5-%d0%b4%d0%b5%d0%bb%d0%be-%d0%b4%d0%b5%d0%bb%d0%b0%d0%b5%d1%82/)󠁿

 [petrozavodsky](https://profiles.wordpress.org/vovasik/) 2018 年 10 月 12 日

Хороший плагин )) работает и код на вид нормальный

![](https://secure.gravatar.com/avatar/fd20484ffc2a16811b038d20479cd5ff8053784a764f400316d0351e71ecf8ac?
s=60&d=retro&r=g)

### 󠀁[Not working….](https://wordpress.org/support/topic/not-working-2446/)󠁿

 [AlanBee](https://profiles.wordpress.org/alanbee/) 2018 年 2 月 16 日

Not working….

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/simple-dns-prefetch/reviews/)

## 贡献者及开发者

「Simple DNS Prefetch」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ andrewmoof ](https://profiles.wordpress.org/andrewmoof/)

[帮助将「Simple DNS Prefetch」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-dns-prefetch)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/simple-dns-prefetch/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/simple-dns-prefetch/)，或通过[RSS](https://plugins.trac.wordpress.org/log/simple-dns-prefetch/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/simple-dns-prefetch/)。

## 更新日志

#### 0.5.2

 * PHP Warning fix

#### 0.5.1

 * PHP Warning fix

#### 0.5.0

 * added “X-DNS-Prefetch-Control” meta-tag control

#### 0.4.2

 * code fix

#### 0.4.1

 * confirmed compatibility with WordPres 4.1

#### 0.4.0

 * minor code optimizations

#### 0.3.0

 * code fix

#### 0.2.1

 * code fix

#### 0.2.0

 * minor code optimizations, changed load behavior

#### 0.0.1

 * created
 * verified compatibility with WP 4.0

## 额外信息

 *  版本 **0.5.2**
 *  最后更新：**8 年前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 4.1 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-dns-prefetch/)
 * 标签
 * [dns](https://cn.wordpress.org/plugins/tags/dns/)[DNS Prefetch](https://cn.wordpress.org/plugins/tags/dns-prefetch/)
   [optimization](https://cn.wordpress.org/plugins/tags/optimization/)[prefetch](https://cn.wordpress.org/plugins/tags/prefetch/)
   [speed](https://cn.wordpress.org/plugins/tags/speed/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-dns-prefetch/advanced/)

## 评级

 3.7 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/simple-dns-prefetch/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/simple-dns-prefetch/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/simple-dns-prefetch/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/simple-dns-prefetch/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/simple-dns-prefetch/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simple-dns-prefetch/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/simple-dns-prefetch/reviews/)

## 贡献者

 *   [ andrewmoof ](https://profiles.wordpress.org/andrewmoof/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/simple-dns-prefetch/)