System Design · Middle · Question 59 of 75
What does <link rel="preconnect"> give you?
- ✓Correct answer: It opens the connection (DNS, TCP, TLS) to an important third-party origin early, saving time on the first request
- 2It downloads all resources of the origin
- 3It makes the origin same-origin
Explanation
Use it for a few critical origins (CDN, API). Too many preconnects waste resources.