Number one this week Quicklink is a library that automatically fetches links included in a web page, in order to improve performance in the browser.
It works by scanning links that are visible to the user and creating automatically
<link rel="prefetch"> tags in the page header, when the browser is idle.
It takes advantage of 3 recent features of modern browsers:
- The Link Prefetching API is used to fetch the response of the links in advance.
- The Intersection Observer API is used to detect when a given element becomes visibles in the browser (when it enters the “viewport”).
- The requestIdleCallback API is used to detect when the browser is idle, hence available to make the “prefetch” HTTP calls.