Title: http:&#x2F;&#x2F;instantclick.io&#x2F;<p>It seems the internet architecture won&#x27;t bring us instant websites anytime soon. So here is a hack.<p>I released this JS library last month (today is version 2.0 release, fixing v1.0&#x27;s rough edges), it makes use of HTML5&#x27;s pushState and preloading to make a website instant.<p>It works like this: before clicking on a link, you&#x27;ll hover over it. And there&#x27;s a delay of 200-300 ms between these two events. InstantClick uses this delay to preload a page, when you click on a link it will display instantly in most case. (You can test on the website.)<p>That&#x27;s similar to pjax and Turbolinks, for it uses HTML5&#x27;s pushState and Ajax. And preloading is thrown into the mix.<p>In case preloading all the links that a user hover over is too much work for the server, there&#x27;s also an option to set a delay before preloading kicks in, or to preload on &quot;mousedown&quot;. Mousedown is when you press your mouse button (a click is when you release it). This way you still get a slight &quot;magical&quot; speed advantage, and pjax&#x27;s benefits (notably, no recalculation of scripts&#x2F;styles on every page change).<p>For mobile it preloads on touchstart, so you get 400 ms to preload. This is different from FastClick: with InstantClick a user can still double tap to zoom without triggering a link.<p>As said in the first sentence, the internet architecture can&#x27;t bring us instant websites today or tomorrow. So I think this — InstantClick — could be a pretty big thing to improve the situation at scale.<p>The main challenge I see is that existing JS scripts may not work with it out of the box. I don&#x27;t do much web development nowadays though, so I don&#x27;t know how big of a problem that is, and I don&#x27;t know if there isn&#x27;t any other major barrier in the way to make this mainstream.<p>That&#x27;s why I&#x27;m awaiting your opinion, smart folks of HN.
Upvote: