Earlier quoted context omitted.
Size isn't even the worst of it. It's number of requests. You need to go through a TCP handshake for every connection you open. You can reuse the connection but that means queuing requests and hitting the latency as a multiplier. Browsers also have a cap on parallel connections so when you get enough requests it queues either way. HTTP/2 reduces the problem with multiplexing but it still doesn't go away. If your app…
> It's number of requests. Absolutely. This is the prime hallmark of shitty, slow web. If you fight your battles here everything else will fall into place. I've started building our B2B web apps where the server returns 1 final, static HTML document in response to every resource. There are no separate js/css resource URLs at all in our products anymore. Anything we need is interpolated into the final HTML document sc…
Noticing when an app is only hosted in us-east-1
101–110 of 193 posts
Re: Noticing when an app is only hosted in us-east-1
#102If you’re opening a website on a low end smartphone with an outdated system, the network latency might be not noticeable (because the UX of the device is so slow anyway).
Re: Noticing when an app is only hosted in us-east-1
#103Earlier quoted context omitted.
Size isn't even the worst of it. It's number of requests. You need to go through a TCP handshake for every connection you open. You can reuse the connection but that means queuing requests and hitting the latency as a multiplier. Browsers also have a cap on parallel connections so when you get enough requests it queues either way. HTTP/2 reduces the problem with multiplexing but it still doesn't go away. If your app…
>If your app has to make 40 requests pulling in js files, CSS files fonts, API calls etc. to show something useful that will be visibly slow To put this in a way the common man can appreciate, imagine you're at a restaurant and you ordered some clam chowder and your waiter brings it to you. If the waiter brings you the chowder complete in one bowl, you get the chowder then and there. That is HN and most websites from…
Re: Noticing when an app is only hosted in us-east-1
#104Earlier quoted context omitted.
The original Space Jam (1996) site does this for navigation (and it still works fine): https://www.spacejam.com/1996/cmp/jamcentral/jamcentralframe...
I just checked, and no it doesn't. The icons in the navigation are separate .gif files. edit to add: And this makes a large part of the load time (when not cached). Other than that, the largest part is the SSL handshake and the fact that the server seems to be a bit slow (WRT the fact that it serves static content; 200ms for dynamic stuff would be okay). Still a lot faster than most of todays websites.
Re: Noticing when an app is only hosted in us-east-1
#105Earlier quoted context omitted.
Remember back in the old days when people used to concatenate images into imagemaps and specify the coordinates and dimensions? One image file for a whole site. Same goes back when we could just load a single library from the Google public version (cough-jquery-cough) and then all the on-page JS was just in-tag handlers. Not that it was better but boy howdy was it faster to load.
You're probably thinking of CSS sprites, if you mean only displaying a certain portion of the image file at a time. An image map is when you display the whole image file as-is, but have different clickable links at different coordinates/dimensions. The former is specifically for reducing requests, while the latter is more about UX.
Sure, it's different from the element (which is officially an image map, as you say).
But it's effectively mapping out the sections of a large image that you care about and then using CSS to display parts of it
Re: Noticing when an app is only hosted in us-east-1
#106I don't buy this. Hacker News is one of the most responsive websites I know. And it is run on a single server somewhere in the USA. While I am in Europe. If you have users in Sydney, Australia ... ... you are floored at 104ms of latency for your request When I open AirBnB with a clean browser cache, it takes several seconds until I see something useful. Those 104ms of latency don't make a dent. Reddit takes over 5 se…
Here, I built a tool to help you visualise what response times are like from around the world so that you "buy this" idea: https://onlineornot.com/do-i-need-a-cdn?url=https://news.yco...
I feel like people also often forget that bad peering by ISP can have a big influence on the overall latency.
Re: Noticing when an app is only hosted in us-east-1
#107Earlier quoted context omitted.
Here, I built a tool to help you visualise what response times are like from around the world so that you "buy this" idea: https://onlineornot.com/do-i-need-a-cdn?url=https://news.yco...
Where are the request servers hosted? What's the peering like for those hosts? I feel like people also often forget that bad peering by ISP can have a big influence on the overall latency.
Re: Noticing when an app is only hosted in us-east-1
#108Earlier quoted context omitted.
>If your app has to make 40 requests pulling in js files, CSS files fonts, API calls etc. to show something useful that will be visibly slow To put this in a way the common man can appreciate, imagine you're at a restaurant and you ordered some clam chowder and your waiter brings it to you. If the waiter brings you the chowder complete in one bowl, you get the chowder then and there. That is HN and most websites from…
If the waiter prioritized the spoon request, you could start eating a lot sooner.
Re: Noticing when an app is only hosted in us-east-1
#109Earlier quoted context omitted.
Q1: Why would round trip latency matter so much when the modern web 45.0 adds so much overhead? Q2: Why don't we just force all the SV techbros to test their sites - AND their browsers - on a $200 notebook with eMMC storage from 2 years ago?
Because most sites aren't interested in their users who use bad hardware as a market share. The most attractive client base are the ones with money to spend.
Re: Noticing when an app is only hosted in us-east-1
#110Earlier quoted context omitted.
The reason HN loads in... 500ms in EU is that it takes exactly two roundtrips to load: One HTML blob, one render-blocking CSS. Rest is fast-ish abroad is because it takes exactly 2 somewhat lean roundtrips to load over the same TLS connection: One HTML blob, one CSS file, and the latter is cachable. There is JS, but it is loaded at the end. That is a hell of a lot better than the average website. When the CSS is cach…
There is no reason why most sites can't return one pregenerated static HTML blob. The number of async requests is a killer.
But that cannot help with interactive pages or web applications, and in other cases it can be a bandwidth/latency tradeoff.
High latency is always bad and should be avoided. Serving content from the served contentinent is the minimum requirement for good UX.