MDN self-hosted library · e01.org

Speculative loading

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

html
<link rel="preconnect" href="https://example.com" />
html
<link rel="dns-prefetch" href="https://example.com" />
html
<link rel="preload" href="main.js" as="script" />
<!-- CORS-enabled preload -->
<link
  rel="preload"
  href="https://www.example.com/fonts/cicle_fina-webfont.woff2"
  as="font"
  type="font/woff2"
  crossorigin />
html
<link rel="modulepreload" href="main.js" />
html
<link rel="prefetch" href="main.js" />
html
<link rel="prefetch" href="/app/style.css" />
<link rel="prefetch" href="/landing-page" />
html
<link rel="prefetch" href="https://news.example/article" />
html
<link rel="prerender" href="/next-page" />