[WordPress] 外掛分享: Prefetch visible links

首頁外掛目錄 › Prefetch visible links
10+
安裝啟用
尚無評分
2664 天前
最後更新
問題解決
WordPress 4.6+ PHP 5.3.0+ v1.0.4 上架:2018-11-29

內容簡介

在頁面載入後,這個外掛會開始追蹤使用者的螢幕。一旦出現在你的網站內的連結,瀏覽器便會執行請求並下載它。當使用者點擊連結時,瀏覽器會立即顯示新快取頁面。這樣,使用者體驗便會顯示你的網站瞬間加載。

工作原理

這個外掛使用內建的瀏覽器功能,預測使用者的行為以預先加載圖片。詳細請參考這裡。

API

這個外掛還註冊了一個全域功能,您可以使用它預加載任何URL:

window.prefetch('https://example.com/custom/page')

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Prefetch visible links」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

After loading the page, the plugin starts to follow the user’s screen. And as soon as a link appears on the screen within your site – the browser executes the request and downloads it. Now that the user clicks on the link, the browser will instantly display a new cache page. Thus, User Experience will indicate that your site is loading instantly.
How it work
The plugin uses the built-in browser features to predict user behavior for preloading the tourniquet. See this
API
The plugin also registers a global feature that you can use to preload any URL:
window.prefetch('https://example.com/custom/page')

延伸相關外掛

文章
Filter
Apply Filters
Mastodon