Browser & Web Performance · Junior · Question 35 of 75
What does <link rel="preconnect" href="https://cdn.example.com"> do?
- 1Checks that the origin is online before the page loads
- 2Downloads every file from that origin
- ✓Correct answer: Opens the connection (DNS, TCP, TLS) to that origin in advance
Explanation
When the first request to that origin happens, the connection is ready, saving one or more round trips.