讓瀏覽器在游標暫留於連結上時,能推測性的預先轉譯或預先擷取對應的頁面。
評分
5
最近更新:
June 6, 2024
版本
1.3.1
活躍安裝總數
20K
Speculative Loading

這個外掛能為網站加入對 Speculation Rules API 的支援,這個 API 允許依據使用者互動方式動態擷取某些網址以定義規則。

請參考 Speculation Rules WICG 規格草案

By default, the plugin is configured to prerender WordPress frontend URLs when the user hovers over a relevant link. This can be customized via the “Speculative Loading” section under Settings > Reading.

A filter can be used to exclude certain URL paths from being eligible for prefetching and prerendering (see FAQ section). Alternatively, you can add the ‘no-prerender’ CSS class to any link (<a> tag) that should not be prerendered. See FAQ for more information.

瀏覽器支援

The Speculation Rules API is a new web API, and the functionality used by the plugin is supported in Chromium-based browsers such as Chrome, Edge, or Opera using version 121 or above. Other browsers such as Safari and Firefox will ignore the functionality with no ill effects but will not benefit from the speculative loading. Note that extensions may disable preloading by default (for example, uBlock Origin does this).

Other browsers will not see any adverse effects, however the feature will not work for those clients.

這個外掛就是之前的 Speculation Rules 外掛。

免費使用Creator方案
活躍安裝總數
20K
目前已測試版本
6.5.5
此外掛程式已可供下載,並可用於你的 WordPress 自助託管安裝。