Skip to content

Latest commit

 

History

History
65 lines (35 loc) · 1.24 KB

PrefetchPageLinks.md

File metadata and controls

65 lines (35 loc) · 1.24 KB
title
PrefetchPageLinks

PrefetchPageLinks

[MODES: framework]

Summary

Reference Documentation ↗

Renders <link rel=prefetch|modulepreload> tags for modules and data of another page to enable an instant navigation to that page. <Link prefetch> uses this internally, but you can render it to prefetch a page for any other reason.

import { PrefetchPageLinks } from "react-router";

<PrefetchPageLinks page="/absolute/path" />;

For example, you may render one of this as the user types into a search field to prefetch search results before they click through to their selection.

Props

crossOrigin

[modes: framework]

How the element handles crossorigin requests

disabled

[modes: framework]

Whether the link is disabled

hrefLang

[modes: framework]

Language of the linked resource

integrity

[modes: framework]

Integrity metadata used in Subresource Integrity checks

media

[modes: framework]

Applicable media: "screen", "print", "(max-width: 764px)"

page

[modes: framework]

The absolute path of the page to prefetch.

referrerPolicy

[modes: framework]

Referrer policy for fetches initiated by the element