fastr
v0.0.3
Published
Fastr turns following links even faster
Downloads
2
Maintainers
Readme
Fastr
Fastr turns following links even faster
Fastr is a simple micro-script to make your users follow links even faster. It simply add a link
element with rel="prefetch"
and rel="prerender
to the document head
when the user hovers a link. In mobile browsers, Fastr works when touchstart
is fired.
By doing this we can improve the experience of navigating trough links. The delay between you hover and click a link is, in average, 400ms*. This is the sufficient amout of time to prefetch a web page or even prerender it, if you have a simple webpage.
*Not scientifically proved, yet.
Using
Fastr is a CommonJs module that you can use in the client-side. Just require
it and run it.
Install it using npm:
npm install fastr --save
Use it:
var fastr = require('fastr'); window.addEventListener('load', function(){ fastr(); });