dev
Viewing docs for dev branch, not the latest release. View latest
PrefetchPageLinks

<PrefetchPageLinks />

This component enables prefetching of all assets for a page to enable an instant navigation to that page. It does this by rendering <link rel="prefetch"> and <link rel="modulepreload"/> tags for all the assets (data, modules, css) of a given page.

<Link rel="prefetch"> uses this internally, but you can render it to prefetch a page for any other reason.

<PrefetchPageLinks page="/absolute/path/to/your-path" />

Note: You need to use an absolute path.

Docs and examples licensed under MIT