NavigationConfig
Auf dieser Seite
Diese API-Referenz wird aus den englischen TypeScript-Quellkommentaren erzeugt. Namen, Signaturen und Beispiele entsprechen dem veröffentlichten Paket.
How the browser moves between pages. Every link still loads a full document.
import type { NavigationConfig } from "ardo/config"
type NavigationConfig = {
/**
* Cross-fade between pages with cross-document view transitions. Browsers without support,
* and readers who prefer reduced motion, navigate without the animation.
*/
viewTransitions?: boolean;
/**
* Start loading a linked page while the pointer rests on its link, with the Speculation Rules
* API. `"prefetch"` downloads the document; `"prerender"` also renders it. Production builds
* only.
*/
speculation?: false | "prefetch" | "prerender";
};
Properties
| Name | Type | Required | Description |
|---|---|---|---|
viewTransitions | boolean | No | Cross-fade between pages with cross-document view transitions. Browsers without support, and readers who prefer reduced motion, navigate without the animation. |
speculation | false | "prefetch" | "prerender" | No | Start loading a linked page while the pointer rests on its link, with the Speculation Rules API. "prefetch" downloads the document; "prerender" also renders it. Production buildsonly. |