內容簡介
在頁面載入後,這個外掛會開始追蹤使用者的螢幕。一旦出現在你的網站內的連結,瀏覽器便會執行請求並下載它。當使用者點擊連結時,瀏覽器會立即顯示新快取頁面。這樣,使用者體驗便會顯示你的網站瞬間加載。
工作原理
這個外掛使用內建的瀏覽器功能,預測使用者的行為以預先加載圖片。詳細請參考這裡。
API
這個外掛還註冊了一個全域功能,您可以使用它預加載任何URL:
window.prefetch('https://example.com/custom/page')
外掛標籤
開發者團隊
原文外掛簡介
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')
