From 0d594e6df0b697d61aa89ce275726f471a1e97b4 Mon Sep 17 00:00:00 2001 From: Harry Roberts Date: Sun, 22 Sep 2024 17:11:42 +0100 Subject: [PATCH] Link to TTFB post --- ...-31-bandwidth-or-latency-when-to-optimise-which.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/_posts/2019-01-31-bandwidth-or-latency-when-to-optimise-which.md b/_posts/2019-01-31-bandwidth-or-latency-when-to-optimise-which.md index c7b625f6..8210895d 100644 --- a/_posts/2019-01-31-bandwidth-or-latency-when-to-optimise-which.md +++ b/_posts/2019-01-31-bandwidth-or-latency-when-to-optimise-which.md @@ -42,7 +42,7 @@ and reduction in latency. We don’t really have the ability to simply ‘increase bandwidth’—although that would be nice!—so what we’re really looking to do is reduce the amount of transfer. Similarly, there isn’t much we can do to really ‘reduce latency’, but we can [avoid -latency](https://csswizardry.com/2024/09/optimising-for-high-latency-environments/) +latency](/2024/09/optimising-for-high-latency-environments/) by perhaps moving our assets closer to the client (e.g. a CDN) or mitigating network overhead (e.g. with Resource Hints). @@ -80,11 +80,12 @@ information here! There are a lot of different phases involved in getting from the point of requesting a file until we’re able to begin downloading it. Once resources have -been discovered, their outgoing requests may need to be scheduled; the browser +been discovered, their outgoing requests may need to be scheduled, the browser might need to perform a DNS lookup to determine the resource’s origin’s IP -address; we’ll then need to open up a TCP connection to that origin; hopefully -we’re running over a secure connection, so that will incur some TLS negotiation; -once we’re on the server, we deal with Time to First Byte (TTFB)[^4], which +address, we’ll then need to open up a TCP connection to that origin, hopefully +we’re running over a secure connection that will incur some TLS negotiation, and +then once we’re on the server we deal with Time to First Byte +([TTFB](/2019/08/time-to-first-byte-what-it-is-and-why-it-matters/))[^4], which includes time spent on the server and the time taken for the first byte of data to traverse the network and end up back on the machine.