fastr

0.0.3 • Public • Published

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.

  1. Install it using npm:

    npm install fastr --save
  2. Use it:

    var fastr = require('fastr');
     
    window.addEventListener('load', function(){
        fastr();
    });

Package Sidebar

Install

npm i fastr

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • hugobessaa