QuizNot attempted
preconnect vs preload
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
preconnectperforms DNS, TCP and TLS to an origin ahead of time without fetching anything- fonts need
crossoriginbecause they are fetched in CORS mode. - Not preload as=font: downloads a specific file, it doesn't just warm the connection.
- Not script async: about script execution, not connection setup.
- Not prefetch: fetches a resource for a future navigation at low priority.