Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dieulot
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
151.
▲
by
dieulot
13y ago
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%”.
152.
▲
by
dieulot
13y ago
Just pushState.
153.
▲
by
dieulot
13y ago
You are. Preloading on touchstart is something that I plan to work on soon though.
154.
▲
by
dieulot
13y ago
For sure. But you get way less bang for your buck that way.
155.
▲
by
dieulot
13y ago
Yep, I’d like to get statistics on the additionnal load. For answering your second paragraph, note that even small gains in speed have a direct effect on user engagement. Google and Amazon have noticed so: http://www.uiandus.com&
156.
▲
by
dieulot
13y ago
Right. If the “delete” or “save” button isn’t a link it won’t get preloaded.
157.
▲
by
dieulot
13y ago
I haven’t tested, but I don’t think so. Creeping in the standard browser behavior is easy enough, but an SPA may likely need to reimplement InstantClick’s logic specifically for it.
158.
▲
by
dieulot
13y ago
The website it is.
159.
▲
by
dieulot
13y ago
You’re right. And InstantClick does that too. ;)
160.
▲
by
dieulot
13y ago
Sort of, see my comment below: https://news.ycombinator.com/item?id=7201725
161.
▲
by
dieulot
13y ago
In my opinion even that is overkill. Remember, in most cases it’s already instant. The return on investment (speed/requests) abruptly declines with brute preloading.
162.
▲
by
dieulot
13y ago
Thanks, much appreciated!
163.
▲
by
dieulot
13y ago
I think it is possible for a subset of websites (because you can’t preload all links by default, some trigger an action such as a logout), that’s an idea I had in mind.
164.
▲
by
dieulot
13y ago
Unfortunately none that I know of.
165.
▲
by
dieulot
13y ago
I think that if you stop hovering fast enough and the request is cancelled, you’ll end up only sending headers, thus not affecting bandwidth that much. Not sure though. If not the case, note that it’s just HTML we’re wasting. In the grand s
166.
▲
by
dieulot
13y ago
It just requires the 1.6kb JS file. :) So yes, it works on static websites (instantclick.io is hosted on GitHub Pages).
167.
▲
by
dieulot
13y ago
Server-side, yes. Client-side (Google Analytics, etc.), it may need adaptation. See the section “Dealing with scripts” at the bottom of http://instantclick.io/start.html
168.
▲
by
dieulot
13y ago
Nope, see my comment below: https://news.ycombinator.com/item?id=7201537
169.
▲
by
dieulot
13y ago
Yes, I was thinking about something in the like of NProgress: http://ricostacruz.com/nprogress/ If the page is displayed instantly, show a complete bar that disappears. (I’m not sure if that would solve the problem, I
170.
▲
by
dieulot
13y ago
You may be talking about this: https://developers.google.com/chrome/whitepapers/prerender Or this: https://developer.mozilla.org/en-US/docs/Link_prefetching_FA... The main differences
171.
▲
by
dieulot
13y ago
Yes. I wonder too what the additionnal load is, I don’t have numbers for now.
172.
▲
by
dieulot
13y ago
Sure, I meant “preload” in the InstantClick sense: getting it ready to replace the DOM.
173.
▲
by
dieulot
13y ago
Thanks, I’ll look into it.
174.
▲
by
dieulot
13y ago
Kinda overkill. ;) I may explore this idea later, but I don’t have great hope for it.
175.
▲
by
dieulot
13y ago
No, my philosophy is to not do anything that could get into one’s way. And that’s a false sense of security. If one is worried about preloading links that triggers an action, there is a whitelist mode to enable links as you review them.
176.
▲
by
dieulot
13y ago
It works with every websites.
177.
▲
by
dieulot
13y ago
The website it is.
178.
▲
by
dieulot
13y ago
You can blacklist these links (or whitelist all the other links).
179.
▲
by
dieulot
13y ago
It works only with links from the website you’re on. When the domain or protocol is different InstantClick don’t (and can’t) preload it.
180.
▲
Show HN: JS library to make your website instant
426 points
by
dieulot
13y ago
|
174 comments
More ›