5 ms·
This is seriously nifty but you really don’t need SPAs or client-side request interception for page loads to feel “instant”. All you need is server-side renderi
by divbzero 6y ago
This is seriously nifty but you really don’t need SPAs or client-side request interception for page loads to feel “instant”. All you need is server-side rendering without a zillion third-party scripts. Clicking around Hacker News provides case in point.
- pier25 6y agoAlso probably because you're close to the server. I doubt someone in say New Zealand would have instant page loads on HN. The solution of course is having distributed data and logic which is becoming much easier and cheaper these days.
- mdoms 6y agoI'm in New Zealand. HN page loads are about as instant as you can get on the web. Certainly faster than the vast majority of SPA interactions and their requisite API calls.
- pier25 6y agoOh wow. How long do you wait for TTFB on HN requests? Edit: I'm in Mexico and the home page loads between 100ms and 1000ms.
- qu4z-2 6y agoI'm seconding this. I'm in New Zealand and Hacker News is easily one of the most responsive sites on the web, in my experience.
- pier25 6y agoHow long do you wait for TTFB from HN on average?
- playpause 6y agoWe have different definitions for “feeling instant”. Most clicks on HN take well over 2s for me on a 4g connection, and often about half a second even on fast broadband. Sure that feels snappy compared to most websites, but it is still a completely different experience to using an app, or indeed a website that has been designed to eliminate perceptible delays as opposed to making them shorter. These are separate (and sometimes even conflicting) design goals.
- onli 6y agoIf the delay you are experiencing is caused by your connection, having the data served via a JS worker will not be faster. The additional overhead compared to a pure HTML page will hurt even more.
- scsilver 6y agoIt will feel faster because it will use the users time between actions to do the needed roundtrip calls.
- onli 6y agoSure, if you preload all your sites' content, which I'm sure the users on slow mobile internet with limited volume and those on weak mobile devices will just love. But I don't see that happening in the linked article nor on the demo page.
- scsilver 6y agoIts 2020 not 2012. The small round trip calls on 4g are much more annoying than one call of a few a mb of data, in my opinion.
- scsilver 6y agoYeah it took over a second to get to this comment page. A lightweight js app could have popped up a modal, I put in my comment, click send, and hide the modal and show a spinner on the bottom right changing to a checkmark when the comment goes through. That's feeling instant, not waiting for the back and forth to a server. The other stories could be lazy loaded in the background as I scroll.