[]previous and next page

PrefetchStrategy

When a link loads its target ahead of a click (the prefetch feature): "none" never, "intent" on hover after a short delay, keyboard focus and touch, "viewport" after the link has been visible for a moment, "render" as soon as the link is on the page.

When a link loads its target ahead of a click (the prefetch feature): "none" never, "intent" on hover after a short delay, keyboard focus and touch, "viewport" after the link has been visible for a moment, "render" as soon as the link is on the page.

Import#

ts
import type { PrefetchStrategy } from "@shadow-js/router";

Signature#

ts
type PrefetchStrategy = "none" | "intent" | "viewport" | "render"