這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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.

評價

2019年5月16日
After installing and adding my domains, the dns-prefetch syntax appears in the code. Works exactly as advertised!
閱讀全部3個評價

貢獻者及開發者

“Simple DNS Prefetch” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Simple DNS Prefetch 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

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