Skip to content

Instantly share code, notes, and snippets.

@rsiddle
Created September 19, 2017 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsiddle/44f0d17969a32cf53adbaa3a439d75d6 to your computer and use it in GitHub Desktop.
Save rsiddle/44f0d17969a32cf53adbaa3a439d75d6 to your computer and use it in GitHub Desktop.
Showing how to switch on DNS-prefetch for Chrome and Firefox through a <meta> tag
<head>
<meta http-equiv="X-DNS-Prefetch-Control" content="on" />
<link rel="dns-prefetch" href="https://fonts.googleapis.com" />
<link rel="dns-prefetch" href="https://ajax.googleapis.com" />
<link rel="dns-prefetch" href="https://cdnjs.cloudflare.com" />
<link rel="dns-prefetch" href="https://www.google-analytics.com" />
</head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment