Skip to content

Faster subsequent page-loads by prefetching or prerendering in-viewport links during idle time.

License

Notifications You must be signed in to change notification settings

collabpl/magento2-module-quicklink

Repository files navigation

Magento 2 QuickLink Extension

The Collab_QuickLink module allows You to embeed and configure quicklink in Your Magento 2 store.

How it works

Quicklink attempts to make navigations to subsequent pages load faster. It:

  • 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 (using navigator.connection.saveData)
  • Prefetches (using <link rel=prefetch> or XHR) or prerenders (using Speculation Rules API) URLs to the links. Provides some control over the request priority (can switch to fetch() if supported).

Configuration

You can configure the module in the admin panel under Stores > Configuration > Collab Extensions > Quicklink. Full options description can be found in the quicklink documentation.

Installation details

composer require collab/module-quicklink
bin/magento setup:upgrade

About

Faster subsequent page-loads by prefetching or prerendering in-viewport links during idle time.

Resources

License

Stars

Watchers

Forks

Packages

No packages published