Quicklink for WordPress

描述

WordPress的Quicklink试图使导航到后续页面的加载速度更快。与插件一起嵌入的是一个javascript库,它检测视口中的链接,等待浏览器空闲并预取这些链接的url。库还尝试检测用户是否处于慢速连接或数据计划中。

这个插件在很大程度上建立在Google Chrome 实验室.

更多信息关于 Quicklink on the official Website.

它是怎么工作的

  • 检测视口内的链接 (using Intersection Observer)
  • 等待直到浏览器空闲 (using requestIdleCallback)
  • 检查用户是否链接缓慢(使用navigator.connection.effectiveType)或启用了数据保护程序(使用navigator.connection.saveData< /代码>)
  • 预取链接的 URL(使用 < /code> 或 XHR)。 提供对请求优先级的一些控制(如果支持,可以切换到 fetch())。

如果您是开发人员,我们鼓励您跟随或贡献来开发此插件在 GitHub 上

安装

从WordPress内部

  1. 访问“插件>添加新”
  2. 搜索 ‘Quicklink for WordPress’
  3. Activate ‘Quicklink for WordPress’ from your Plugins page.

手动

  1. 上传 quicklink 文件夹到 /wp-content/plugins/ 目录
  2. 激活Quicklink 用于WordPress 插件通过在WordPress的 “Plugins” 菜单

常见问题

这会让我的网站更快吗?

是和否。此插件对您网站的实际性能没有影响。但是浏览网站会感觉更快,因为用户的潜在导航目标已在用户浏览器中预取。

这会使我的网站变慢吗?

减慢网站速度的可能性很小,但有可能。 如果此插件与缓存插件一起使用,则服务器上的额外命中不应影响性能。 但是,如果预取资源密集型、未缓存的目标,则性能损失是可以预料的。

如果我的网站变慢了怎么办?

您应该首先检查是否启用了一个好的缓存插件,如“WP Super Cache”、“W3 Total Cache”或“WP Rocket”。如果这还不够,您可以随时通过修改“quicklink_options”过滤器向 Quicklink 配置添加例外规则

评价

2021 年 7 月 16 日 1 回复
where i can see the performance?...i even don't see the performance for the link.It is there have any experience userinterface for that?
2020 年 1 月 26 日
Thanks for this wordpress plugin!
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 日 2 回复
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.
阅读所有11条评价

贡献者及开发者

“Quicklink for WordPress” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Quicklink for WordPress」插件已被翻译至 6 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Quicklink for WordPress”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.10.0

  • General maintenance for the repository
  • Updated Quicklink dependency to version 2.3
  • Tested for WordPress 6.2

0.9.0

  • General maintenance for the repository
  • Updated Quicklink dependency to version 2.2
  • Tested for WordPress 5.8

0.8.0

  • 已将Quicklink依赖项更新到2.0版

0.7.3

  • 使函数具有不太通用的名称

0.7.1

  • 使用 WooCommerce 修复更多弃用问题

0.7.0

  • 更改默认设置以忽略带有获取请求的链接以提高兼容性
  • 删除了 WooCommerce 的一些不推荐使用的功能

0.6.0

  • 更新Quicklink到1.0.1

0.5.0

  • 增加了商业规则和兼容性

0.4.0

  • 更新了脚本用于异步加载
  • 更新插件资产

0.3.0

  • 添加了与AMP的兼容性
  • 添加了amazing的贡献者
  • 添加了新的WordPress 过滤器”quicklink_options” 来修改quicklink设置

0.2.0

  • 发布插件仓库
  • 调整后的quicklink忽略 WordPress

0.1.0

  • 首次发布