Quicklink library attempts to make navigations to subsequent pages load faster. This module loads the library and provides a Backdrop administrative interface to configure it.
Quicklink:
- Detects links within the viewport.
- Waits until the browser is idle.
- Checks if the user isn't on a slow connection or has data-saver enabled.
- Prefetches URLs to the links (using or XHR). Provides some control over the request priority (can switch to fetch() if supported).
- Download the Backdrop module and extract it to your modules folder.
By default this module will load the Quicklink JavaScript library from a CDN at
https://unpkg.com/[email protected]/dist/quicklink.umd.js
.
The Quicklink module admin interface is located at
admin/config/development/performance/quicklink
, and can be accessed from a tab on the development
/ performance settings page.
Without polyfills: Chrome, Firefox.
With Intersection Observer polyfill: Safari, Edge
You can tell Quicklink to ignore certain links by adding them into the ignore
list at admin/config/development/performance/quicklink
.
In addition, you can add a noprefetch
attribute onto the <a>
tag to tell
the library not to prefetch this link.
To submit bug reports and feature suggestions, or to track changes: http://github.com/backdrop-contrib/quicklink/issues
- Herb v/d Dool (https://github.com/herbdool/)
- Seeking additional maintainers.
- Ported to Backdrop by Herb v/d Dool (https://github.com/herbdool/)
- Originally developed for Drupal by mherchel
This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.