rafaelcg/magento2-quicklink
Composer 安装命令:
composer require rafaelcg/magento2-quicklink
包简介
Faster subsequent page-loads by prefetching in-viewport links during idle time
README 文档
README
Magento 2 Quicklink Module
Faster subsequent page-loads by prefetching in-viewport links during idle time
How does it works?
Magento 2 Quicklink module attempts to make navigations to subsequent pages load faster.
- Detects links within the viewport (using Intersection Observer)
- Waits until the browser is idle (using requestIdleCallback)
- Checks if the user isn't on a slow connection (using
navigator.connection.effectiveType) or has data-saver enabled (usingnavigator.connection.saveData) - Prefetches URLs to the links (using
<link rel=prefetch>or XHR). Provides some control over the request priority (can switch tofetch()if supported).
Install
Via Composer
Install using Composer.
composer require rafaelcg/magento2-quicklink
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
How to use
After installation, it will be enabled by default. You can find the configuration into Stores > Configuration > General Web > Google Quicklink.
统计信息
- 总下载量: 15.88k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 51
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2019-07-13