Dev Helpers

Next.js / Internal links

Prefetched guide link

Dev Helpers · November 2, 2025

An internal Link can prepare a route ahead of navigation. Prefetch behaviour depends on production mode and the route being linked.

Worked example

// components/PrefetchedGuideLink.tsx

import Link from "next/link";

export default function PrefetchedGuideLink({
  href = "/guide",
  label = "Read guide",
}: { href?: string; label?: string } = {}) {
  return (
    <Link href={href} prefetch={true}>
      {label}
    </Link>
  );
}

Implementation notes

Prefetching every destination in a large index may consume bandwidth the visitor never uses. Measure actual navigation before increasing eager loading.

Try it yourself

Compare the network activity on a production build with a local dev build.

Open the Next.js example →

Editorial date November 2, 2025 · Published December 6, 2026

Related articles

Free bin volume

Free storage volume depends on consistent dimensions and units. Derive capacity and usage in the same unit before formatting a human-readable summary.

Draft preview indexing

Draft pages need deliberate indexing metadata. An indexing directive controls crawler intent, while access to unpublished material needs a separate permission check.

Party size allocation

Allocating a party into groups is an integer problem. The remainder determines whether another group is needed and how full it will be.