Magento2 Quicklink
rafaelcg/magento2-quicklink
Prefetches in-viewport links during idle time to speed up subsequent page loads. Improves user experience by reducing navigation latency.
Build Tests
Code Quality
Tested on Magento 2.4.8-p3
Recent Test History
Each release is tested against the latest Magento version at that time.
Looking for Contributors
Composer installation fails. Your contribution could help the entire Magento community!
Share This Module's Status
README
Loaded from GitHubFaster 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.
This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.