Live data from Hacker News

Show HN: Make your site’s pages instant in one minute

instant.page

261–270 of 361 posts

Re: Show HN: Make your site’s pages instant in one minute

#261

Earlier quoted context omitted.

I've seen this kind of features several times on libs. And sometimes I can't un-think about it while my mouse is hovering on links in normal life. It's .. prefetching or not?

Hmm, I wonder: if the user isn't asked to authorise the action whether it technically breaches the Computer Misuse Act (UK). If you send a requested page, that's obviously fine. Normal use of websites is expected, but unilaterally instructing your site visitor's browser to download further unrequested content that's not part of a requested resource ...?

Since nothing is actually executed until you click on the link, the only issue would be those on metered connections.

Re: Show HN: Make your site’s pages instant in one minute

#262
post #222

Live demo on my website @ https://sysadmincasts.com/ Temporary added it in-line for testing. I was already in the sub 100ms level but this just puts it over the top! Also updated all admin add/edit/delete/toggle/logout links with "data-no-instant". Pretty easy. Open developer preview and watch the network tab. Pretty neat to watch it prefetch! Thanks for creating this! ps. Working on adding the license comment. I str…

nothing on my network tab in ff 65.0

Not working for me either, Chrome works great though.

Re: Show HN: Make your site’s pages instant in one minute

#264

Can this be easily tweaked to preload images as well, if desired? Or is their exclusion inherent in the method used?

As far as I can tell it just downloads the page. Nothing is parsed until you click the link, so there really isn't a reliable way of telling which images to load until then.

You could write something to parse the page and download images, but I don't recommend it. You risk a significant performance hit for the client, and a lot of wasted bandwidth for both client and server.

Re: Show HN: Make your site’s pages instant in one minute

#265
post #91

Earlier quoted context omitted.

Good point. What would be a good way to avoid prefetch requests in your analytics if you only derive analytics from server access logs?

You could obviously do it with JavaScript by pinging the server to tell him that log entry X is to be promoted to a true "hit". For a non-JS solution, I guess an tiny iframe at the bottom of the html page that accesses a special server page with an unique stamp that causes the same "hit". the iframe loading would mean that the rest of the page is mostly loaded before it was closed.

> For a non-JS solution

How do you use this library with JS disabled?

Re: Show HN: Make your site’s pages instant in one minute

#266
post #238

Earlier quoted context omitted.

Like mentioned in another comment, if somebody used a GET http link to logout from a webpage, you would end up with a ton of surprised users. People who read articles by highlighting the text with the mouse would also probably hover over all of the links and would end up wasting bandwidth for no reason.

> if somebody used a GET http link to logout from a webpage, If you violate the standards, your website doesn't work. Who knew? > People who read articles by highlighting the text with the mouse would also probably hover over all of the links and would end up wasting bandwidth for no reason. "For no reason" is obviously wrong, making the web snappier is a reason. Maybe browsers should only prefetch links on bloated w…

This is just an ignorant response. The history of the internet is littered with pragmatic solutions to standard vs. non-standard approaches for exactly these reasons. See: , Referer header, the HTML standard as a whole.

By the way, if your standard contradicts a popular methodology, it's probably a bad standard.

Re: Show HN: Make your site’s pages instant in one minute

#267
post #240

Earlier quoted context omitted.

I'd also hesitate wasting resources in such a way. About your first statement though, which server software do you use that still sends data after the client has closed the connection? Doesn't it use hearbeats based on ACKs?

The server is still doing all of the work in its request handlers regardless of whether client closed the connection.

Not if the server is setup correctly.

Re: Show HN: Make your site’s pages instant in one minute

#268

I have just added it to a Shopify store to try it and it does indeed speed things up! However I am a little concerned with adding a script from another website... it requires a lot of trust, doesn'it?

> However I am a little concerned with adding a script from another website... it requires a lot of trust, doesn'it?

Not if you use the `integrity` attribute like the page recommends. If the file hash doesn't match the one given in the tag, the browser won't run the script.

https://developer.mozilla.org/en-US/docs/Web/Security/Subres...

Re: Show HN: Make your site’s pages instant in one minute

#269

It seems everybody is missing this but this could actually slow down your experience, and I'd actually guess it will in some scenarios (ie. not only a theoretical situation). Considering a user hovering over a bunch of links and then clicking the last one, and doing this in a second. Let's assume your site takes 3 sec to load (full round-trip) and you're server is only handling one request at a time (I'm not sure how…

It also has a minimum time of hovering, so if you're going by it quickly it won't fetch anything.

Re: Show HN: Make your site’s pages instant in one minute

#270

Live demo on my website @ https://sysadmincasts.com/ Temporary added it in-line for testing. I was already in the sub 100ms level but this just puts it over the top! Also updated all admin add/edit/delete/toggle/logout links with "data-no-instant". Pretty easy. Open developer preview and watch the network tab. Pretty neat to watch it prefetch! Thanks for creating this! ps. Working on adding the license comment. I str…

Embedding base64 images isn't really more efficient on HTTP/2 servers. Base64 adds overhead, and multiplexing mitigates the cost of additional network requests.
Post reply on HN