Skip to content

Instantly share code, notes, and snippets.

Last active September 26, 2021 00:35
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Hints to the browser that might prime the pump for resources you will need. PreLoad is the only exception here, being more of an instruction than just a hint.
by Addy Osmani (@addyosmani)
Preresolve DNS hostnames for assets
<link rel="dns-prefetch" href="">
Begin a connection handshake in the background
<link rel="preconnect" href="" crossorigin>
Declaratively fetch a resource without executing it
<link rel="preload" href="late_script.js" as="script">
Prefetch a resource for a future navigation
<link rel="prefetch" href="images/large.ipg">
Prerender a page in the background for future nav
<link rel="prerender" href="next.html">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment