instant.page

instant.page 3.0 — incorporating the best from quicklink

Introduction

instant.page makes your site’s pages instant — in 1 minute of effort — by preloading pages right before a user clicks on them: when they hover over a link for 65 ms; there’s one chance out of two that they will click then. On mobile, it preloads when they start touching their display, before releasing it.

quicklink from Google makes your site’s pages instant by preloading every link the user sees. This is heavy in terms of resources.

Different strengths

On desktop, instant.page’s mechanism is enough to make pages instant the vast majority of the time, but on mobile on good 3G it merely feels instant — because the brain perceive any action taking less than 100 ms as instant — but it’s not totally instant. And it only feels instant on good 3G if your pages are fast to render.

quicklink on mobile is great, as it makes links be truly instant (minus rendering time). On desktop, not so great, as it makes an enormous amount of requests because the viewport is so large — while preloading on hover would do the job nearly just as well.

The best of both worlds

instant.page 3.0 combines the best of both worlds, as it preloads on hover on desktop and has a new option to preload every visible links on mobile, where there are fewer links visible and where it makes the most impact.

Enable instant.page 3.0 on your site in 1 minute:

Put this HTML code just before </body>:
<script src="//instant.page/5.2.0" type="module" integrity="sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z"></script>
Copied. Now place it just before </body> on your pages.

Then add data-instant-intensity="viewport" as an attribute to the <body>. You now have truly instant pages (minus rendering time) on every device, while making a great deal less requests than quicklink would do.

Mimicking quicklink entirely, with a bonus

If you don’t mind making a lot of requests, you can enable viewport preloading on desktop and tablets as well with data-instant-intensity="viewport-all". This mimics quicklink’s behavior, with the added advantage that it will fall back to instant.page’s default preloading mechanism if the observation of all links on the page hasn’t kicked in yet (both quicklink and instant.page use requestIdleCallback to defer that to when your page is idle) or if the user has enabled data saver or is on 2G.

Make your users enjoy the best of both worlds. Or just use instant.page’s default options, that’s pretty fast too.

Trusted by:

Adidas Spotify Rakuten Interflora PepsiCo islam.com APKMirror 000webhost Lifehack Android Police Сноб Yoast AS Saint-Etienne SmashingConf Hodinkee And thousands of others…
Put this HTML code just before </body>:
<script src="//instant.page/5.2.0" type="module" integrity="sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z"></script>
Copied. Now place it just before </body> on your pages.