InstantClick

Languages and libraries

javascript library

SHOW HN2014

426points
174comments
#22of 2,272 in 2014
Top 1%of 2014 by points

How HN took it

CuriousMostly questions and neutral comments

16 positive, 44 neutral or asking, 2 mixed, 19 critical, out of 81 comments about the project. Thread score -0.01.

Performance: 3 for, 7 againstExecution: 4 for, 4 againstIdea: 3 for, 3 againstPrivacy: 0 for, 2 againstDesign: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Fast, near-instant page loads in testing

    From 2 comments
    • Awesome work! I just installed this in my own new experimental (read: very low traffic) web app: http://www.penngems.com/ I set the preload to occur on mousedown rather than…
      maxucho on HN
    • By the way, if you don't want to listen to mouseover, merely listening to mousedown takes 50-70ms off loads [1]. Not ignorable. [1]…
      dmazin on HN
  • Lightweight and does not use jQuery

    From 1 comment
  • MIT license

    From 1 comment
    • Note that the author, Alexandre Dieulot, opted generously to release this under the MIT license (thanks buddy). https://github.com/dieulot/instantclick/blob/master/LICENSE
      d0ugie on HN

Objections

  • Preloading on hover can trigger side-effect links like logout

    From 2 comments
    • Realy Cool, Only real problem with this is if the clicking has side effects like: http://example.com/?action=logout as brought up on page. And probably a ton of other application…
      callesgg on HN
    • Poorly designed applications like this one? https://accounts.google.com/Logout
      mherkender on HN
  • Preloading adds server load and wasted bandwidth

    From 2 comments
    • Wonder what happens for website with zillion of visitors per day. Could all this preload impact on servers?
      napolux on HN
    • One way I see to move this forward in websites at scale is to run a test where you find out the percentage of hovers that result in a click. Suppose its 90% - that means that 10%…
      primitivesuave on HN
  • Breaks analytics and scripts that run on page load

    From 2 comments
    • Wouldn't this ruin usage stats?
      oneeyedpigeon on HN
    • Realy Cool, Only real problem with this is if the clicking has side effects like: http://example.com/?action=logout as brought up on page. And probably a ton of other application…
      callesgg on HN
  • Hover-based preloading raises privacy concerns

    From 1 comment
    • While interesting, I think this kind of functionality should be implemented only by browser developers and should be turned off by default. Really, I can wait 1 second until the…
      snitko on HN

Requests

  • Preload on touchstart for touch devices

    From 2 comments
    • You are. Preloading on touchstart is something that I plan to work on soon though.
      dieulot on HN
    • Preloading on touchstart is planned. Also note that percentages like that don’t tell the whole picture; non-touch traffic hasn’t decreased by “like 40%”.
      dieulot on HN
  • Per-link customisation of preload trigger

    From 1 comment
    • Really awesome. I was working on something like this myself, but using Jquery ajax combined with history.pushState for partial page loads. This is much better! There are a couple…
      adwf on HN
  • Chrome extension to use on any site

    From 2 comments
    • Is it possible to make it a Chrome extension and use it on all sites?
      aehv on HN
    • In theory you could write a chrome extension and use it for any site, right?
      mbesto on HN

Questions

  • Is there a demo page?

    From 2 comments
  • How does it compare to link prerender and prefetch?

    From 2 comments
    • Doesn't Chrome already do something like this?
      w1ntermute on HN
    • Isn't this what link rel="prerender" does? https://developers.google.com/chrome/whitepapers/prerender
      AshleysBrain on HN

Alternatives named

  • Turbolinks

    From 2 comments
    • By the way, if you don't want to listen to mouseover, merely listening to mousedown takes 50-70ms off loads [1]. Not ignorable. [1]…
      dmazin on HN
    • So this is like a fork of TurboLinks? I've made this thing myself for website I use in couple of minutes. I would probably not rely my whole website on this plugin.
      romanovcode on HN
  • pjax

    From 1 comment
  • Chrome prerender

    From 2 comments
    • Isn't this what link rel="prerender" does? https://developers.google.com/chrome/whitepapers/prerender
      AshleysBrain on HN
    • Doesn't Chrome already do something like this?
      w1ntermute on HN
  • link rel=prefetch

    From 2 comments
    • I think you should utilize the prefetch behavior of the link tag for situations such as these. No need for JavaScript at all.
      CoryG89 on HN
    • ``` <link rel="prefetch" href="http://example.com/page2" /> ``` More info at http://davidwalsh.name/html5-prefetch
      ivanca on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/7201353)