Description

Quicklink for WordPress attempts to make navigation to subsequent pages load faster. Embedded with the plugin is a javascript library, which detects links in the viewport, waits until the browser is idle and prefetches the URLs for these links. The library also tries to detect, if the user is on a slow connection or on a data plan.

This plugin builds heavily on the amazing work done by Google Chrome Labs.

How it works

Detects links within the viewport (using Intersection Observer)

(using Intersection Observer) Waits until the browser is idle (using requestIdleCallback)

(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 )

(using ) or has data-saver enabled (using ) Prefetches URLs to the links (using <link rel=prefetch> or XHR). Provides some control over the request priority (can switch to fetch() if supported).

If you are a developer, we encourage you to follow along or contribute to the development of this plugin on GitHub.