MDN self-hosted library · e01.org
Prefetch / notebook

Prefetch

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

html
<link rel="prefetch" href="next.html" />
html
<link rel="prefetch" href="next.html" />
html
<script type="speculationrules">
  {
    "prefetch": [
      {
        "source": "list",
        "urls": ["next.html"]
      }
    ]
  }
</script>
html
<link rel="dns-prefetch" href="https://example.com/" />