preconnect
A resource hint, <link rel="preconnect">, that makes the browser do the DNS lookup, TCP handshake and TLS negotiation with another server before any request is sent.
In more detail
When the real request comes, the connection is already open, saving several round trips. Each open connection costs resources, so preconnect only to a few servers you will definitely use.
Related terms
- DNS — The system that turns names such as learnsome.tech into IP addresses.
- TCP — The internet protocol that delivers data between programs reliably and in order, used by the web and most databases.
- TLS — The encryption that protects data travelling over a network, the S in HTTPS.
- resource hint — A link element that tells the browser in advance about something it will need, such as preload, prefetch or preconnect, so it can start early.
Taught in
- Critical Rendering Path: Preload, Prefetch And Scripts — Frontend Architecture & Web Platform