Skip to content

QuizNot attempted

preconnect vs preload

You use Google Fonts. Which hint starts the DNS + TCP + TLS handshake early without downloading anything?
1–4 to choose, Enter to submit
Show answer & explanation

Correct answer:

  • <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  • preconnect performs DNS, TCP and TLS to an origin ahead of time without fetching anything
  • fonts need crossorigin because 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.