collab/module-quicklink

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

1.0.0 2024-02-24 11:24 UTC

This package is auto-updated.

Last update: 2024-05-24 12:01:34 UTC


README

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