Skip to content

Instantly share code, notes, and snippets.

@revnode
Created May 26, 2013 18:19
Show Gist options
  • Save revnode/5653584 to your computer and use it in GitHub Desktop.
Save revnode/5653584 to your computer and use it in GitHub Desktop.
DNS hostname resolution is one of the issues that can make any website slow. Modern browsers start to be very smart when it comes to DNS resolution, they try to resolve domain names then cache them before the user tries to follow any link on the webpage. With the dns-prefetch feature you are allowed to manually control this operation by telling …
<link rel="dns-prefetch" href="//fonts.googleapis.com">
<link rel="dns-prefetch" href="//google-analytics.com">
<link rel="dns-prefetch" href="//www.google-analytics.com">
<link rel="dns-prefetch" href="//platform.twitter.com">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment