News for hackers. Stuff that matters.
Re:Show HN: Make your site’s pages faster than instant in on... by tryptophan on Saturday May 16, 2020 @11:08AM (#23203971)
Don't browsers do this themselves? Preload links on a page you visit? I think firefox calls it pre-fetching.
Re:Show HN: Make your site’s pages faster than instant in on... by grx on Saturday May 16, 2020 @11:25AM (#23204149)
In case of prefetching, that's a header <link> functionality: https://developer.mozilla.org/en-US/docs/Web/HTTP/Link_prefe.... Most implementations use it for static content like images or CSS. There's also DNS prefetching, which depends more on the browser.

What you might mean is "prerendering", i.e. silently downloading another page in the background. This feature is not yet supported in Firefox, but heavily used by Google and in Chrome. IIRC, earlier Firefox versions actually supported this through addons, but these addons did not know the page and pre-loaded every link they could find on the page. This resulted in an enormous amount of background traffic, essentially wasted due to only one link being the "next" link. Therefore, using the preload/prefetch/prerender link attributes should be left to the site owner.

Here's a good resource on preload (same page), prefetch (next page) and preconnect (other source domains): https://www.machmetrics.com/speed-blog/guide-to-browser-hint...

Edit: as Arkanosis mentioned in a related comment, the refered to addon was called Fasterfox: http://fasterfox.mozdev.org/faq.html#What_is_prefetching

Re:Show HN: Make your site’s pages faster than instant in on... by toolz on Saturday May 16, 2020 @11:16AM (#23204053)
I don't believe so, no. Imagine how much potential wasted bandwidth that would be for someone on cell data
Re:Show HN: Make your site’s pages faster than instant in on... by Arkanosis on Saturday May 16, 2020 @11:27AM (#23204166)
Fasterfox (the now disappeared addon, not the currently available theme of the same name) did that. And yes, it wasted bandwidth (for site owners as well).
Re:Show HN: Make your site’s pages faster than instant in on... by detaro on Saturday May 16, 2020 @11:48AM (#23204374)
Chrome has at least experimented with doing it, I don't know if they currently ship it though.
Re:Show HN: Make your site’s pages faster than instant in on... by noisem4ker on Saturday May 16, 2020 @11:25AM (#23204147)