Quicklink for WordPress

外掛說明

Quicklink for WordPress 會試著讓後續頁面的導覽載入速度更快。 安裝這個外掛後,便會在網站內嵌入一個 JavaScript 程式庫,這個 JavaScript 程式庫可以偵測檢視區內的連結、等待瀏覽器閒置時間並預先擷取這些連結的網址。如果網站使用者以慢速連線或行動資費方案存取網站,程式庫也會試著偵測這些連線方式。

這個外掛能夠開發完成,必須歸功於 Google Chrome Labs 令人讚嘆的工作成果。

外掛運作方式

  • 偵測檢視區內的連結:採用 Intersection Observer
  • 瀏覽器閒置時開始運作:採用 requestIdleCallback>。
  • 偵測網站訪客是否處於低速連線:採用 navigator.connection.effectiveType 或啟用採用 navigator.connection.saveData 的 data-saver。
  • 預先擷取連結中的網址內容:採用 <link rel=prefetch> 或 XHR。如果支援的話,會提供能切換至 fetch() 的要求順序控制項。

如果你是開發者,非常歡迎你追蹤這個外掛的 GitHub 存放庫參與這個專案的開發。

安裝方式

自動安裝

  1. 前往 [外掛] > [安裝外掛]
  2. 搜尋「Quicklink for WordPress」
  3. 在 [外掛] 頁面啟用 Quicklink for WordPress

手動安裝

  1. quicklink 資料夾上傳至 /wp-content/plugins/ 目錄
  2. 透過 WordPress 管理後台的 [外掛] 選單啟用 Quicklink for WordPress

常見問題集

這個外掛能讓網站變快嗎?

可以,也不行。這個外掛不會影響網站的實際執行效能,但使用者瀏覽網站時會覺得瀏覽速度有所提升,因為這個外掛會讓使用者的瀏覽器在瀏覽頁面時,預先擷取當下頁面中的連結所屬目標頁面。

這個外掛會讓網站變慢嗎?

通常不會讓網站變慢,但並非不會發生。如果這個外掛與其他外掛同時安裝,這些額外產生的預先點擊應該不會影響伺服器效能:但如果預先擷取大量耗用資源且未經快取的目標,效能的耗損便有可能發生。

如果網站變慢,網站管理員能處理哪些項目進行改善?

網站管理員請先檢查網站是否已啟用某些知名快取外掛,如 WP Super Cache、W3 Total Cache 或 WP Rocket 等。如果仍覺得這些效果不顯著,請在這些外掛中透過修改 quicklink_options 篩選器,將 Quicklink 組態加入例外規則。

使用者評論

2019 年 6 月 26 日
This plugin is flawless. Only added it on a couple of sites, but my PageSpeed Insights scores are still the same. The plugin is written by reputable coders who know what they are doing. Definitely worth adding, because prefetching page links is all the rage. That's why the Jamstack websites such as Gatsby are so quick to navigate. If you want your WordPress to be as fast then this is the type of plugin you should be adding, once you've done the basics like W3 Total Cache, Smush and the rest...
2019 年 2 月 27 日
I use this plugin in combination with WP Rocket and lazyloading. It works perfectly together, no issues or what so ever. But I'm not sure if this plugin is supported by all browsers. It works smoothly on Chrome, but on Firefox I don't seem to notice a difference. Got to test it with other browsers. But overall, good plugin. Recommended.
2019 年 2 月 21 日
I was advised by SemRush to use this plugin I thought id try it on an already optimized website. pagespeed went from 1.2sec to 14secs Like WTF, GTmetrix went from 100google 96 yslow to 88google and 76 yslow. Really this pluging is not good and if you are thinking of using this you should check scores before and after activation. For me tho this caused 14sec page load and increased 140kb in page size. Devs if you would like to contact me then feel free. seodevs.com I will welcome you to check the cause so you can improve the Plugin.
2019 年 2 月 10 日
Such a great plugin! Literally it will make your website seem like the fastest thing out there to the end user. It comes with a price, of course, you'll end up with a lot of "pages visited" in your webserver logs that the client didn't really visit, they were just preloaded in case the user clicked. But overall it makes your website seem like it's the fastest thing out there, clicking on other links etc on the page and they load straight away (tested for me with Chrome) This is really a great add-on, along with a wp-cache plugin you'll have the fastest site out there by miles.
2019 年 2 月 1 日
Thanks for publishing this. Works really well. Would be nice to see option to loading Quicklink from a CDN.
閱讀全部 7 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Quicklink for WordPress〉的開發相關工作。

參與者

Quicklink for WordPress 外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將 Quicklink for WordPress 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.7.1

  • Fix some more deprecations with WooCommerce

0.7.0

  • Changed the defaults to ignore links with get requests to improve compatibility
  • Removed some deprecated functions for WooCommerce

0.6.0

  • Updated Quicklink to version 1.0.1

0.5.0

  • Added rules and compatibility for WooCommerce

0.4.0

  • Updated the script loading to load asynchronously
  • Updated the plugin assets

0.3.0

  • Added compatibility with AMP
  • Added amazing contributors
  • Added the new WordPress filter ‘quicklink_options’ to modify quicklink settings

0.2.0

  • Release for the plugin repository
  • Tuned quicklink ignores for WordPress

0.1.0

  • Initial release