Skip to content

Instantly share code, notes, and snippets.

@kurtschlatzer
Forked from nepsilon/resource-hints.md
Created October 24, 2015 02:45
Show Gist options
  • Save kurtschlatzer/95f03619248ff3339780 to your computer and use it in GitHub Desktop.
Save kurtschlatzer/95f03619248ff3339780 to your computer and use it in GitHub Desktop.
Resource Hints
<!-- pre-DNS resolve a domain -->
<link rel="dns-prefetch" href="//widget.com">
<!-- pre-connect to a domain HTTP endpoint -->
<link rel="preconnect" href="//cdn.example.com">
<!-- pre-fetch a resource, here an
image needed on the page -->
<link rel="prefetch" href="//example.com/logo.jpg" as="image">
<!-- pre-render a web page, here for
the next page of an article -->
<link rel="prerender" href="//example.com/next-page.html">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment