Quicklink for WordPress
Quicklink for WordPress intenta hacer que la navegación a las páginas sucesivas se cargue más rápido. El plugin incluye una biblioteca javascript que detecta los enlaces en la ventana de visualización, espera a que el navegador esté inactivo y preprocesa las URLs de estos enlaces. La biblioteca también intenta detectar si el usuario está en una conexión lenta o en un plan de datos.
Este plugin se basa en gran medida en el increíble trabajo realizado por Google Chrome Labs.
More information about Quicklink on the official Website.
How it works
- 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).
If you are a developer, we encourage you to follow along or contribute to the development of this plugin on GitHub.
