News for hackers. Stuff that matters.
Re:Show HN: Make your site’s pages instant in one minute by chiefalchemist on Saturday February 09, 2019 @12:59PM (#19123618)
I looked (quickly) through most of the comments below and couldn't answer these questions:

1) What, if anything, is the downside here?

2) Is (Google) analytics effected by the prefetch? That is, does that get counted as a page visit if the link that triggers this prefetch is not actually clicked?

Tia

Re:Show HN: Make your site’s pages instant in one minute by dieulot on Saturday February 09, 2019 @01:01PM (#19123629)
The downside is that your pages’s HTML are loaded twice as much, this makes for additional load on your server.

Client-side analytics like GA aren’t affected.

Re:Show HN: Make your site’s pages instant in one minute by Semaphor on Saturday February 09, 2019 @01:41PM (#19123838)
> The downside is that your pages’s HTML are loaded twice as much

How? It would load the HTML just as often and not download it a second time as that would invalidate the usage

> this makes for additional load on your server.

True for users who hover over links they decide not to visit

Or am I misunderstanding something here?

Re:Show HN: Make your site’s pages instant in one minute by Zarel on Saturday February 09, 2019 @01:58PM (#19123927)
> How? It would load the HTML just as often and not download it a second time as that would invalidate the usage

I'm guessing you didn't read the linked article? It preloads after 65ms on hover, at which point it estimates a 50% chance that the user will click. Hence "loaded twice as much".

> True for users who hover over links they decide not to visit

Yes, that's the point.

Re:Show HN: Make your site’s pages instant in one minute by SheinH on Saturday February 09, 2019 @01:40PM (#19123826)
If your html is gzipped, that's in the double digits of kilobytes for most cases. That's nothing compared to images and other content.