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 ...?
Show HN: Make your site’s pages instant in one minute
261–270 of 361 posts
Re: Show HN: Make your site’s pages instant in one minute
#262Live 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
Re: Show HN: Make your site’s pages instant in one minute
#263Re: Show HN: Make your site’s pages instant in one minute
#264Can this be easily tweaked to preload images as well, if desired? Or is their exclusion inherent in the method used?
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
#265Earlier 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.
How do you use this library with JS disabled?
Re: Show HN: Make your site’s pages instant in one minute
#266Earlier 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…
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
#267Earlier 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.
Re: Show HN: Make your site’s pages instant in one minute
#268I 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?
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
#269It 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…
Re: Show HN: Make your site’s pages instant in one minute
#270Live 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…