-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
21 lines (15 loc) · 897 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
title: Time to first byte
slug: Glossary/Time_to_first_byte
page-type: glossary-definition
---
{{GlossarySidebar}}
**Time to First Byte** (TTFB) refers to the time between the browser requesting a page and when it receives the first byte of information from the server. This time includes [DNS](/en-US/docs/Glossary/DNS) lookup and establishing the connection using a [TCP](/en-US/docs/Glossary/TCP) handshake and [TLS](/en-US/docs/Glossary/TLS) handshake if the request is made over [HTTPS](/en-US/docs/Glossary/HTTPS).
TTFB is the time it takes between the start of the request and the start of the response, in milliseconds:
```plain
TTFB = responseStart - navigationStart
```
## See also
- [A typical HTTP session](/en-US/docs/Web/HTTP/Session)
- [PerformanceResourceTiming](/en-US/docs/Web/API/PerformanceResourceTiming)
- [PerformanceTiming](/en-US/docs/Web/API/PerformanceTiming)