Prefetch visible links
v1.0.4Alex Kozack · 2018年11月30日 上架
Preloads the page before the visitor clicks on the link.
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 1,564
- 最近更新
- 2018年11月30日
需要 WordPress 4.6+已测试到 4.9.36PHP 5.3.0+
贡献者
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')