Zum Inhalt springen
Kitbay
Skill

next-partial-prefetching-adoption

MITAktualisiert am 11. Nov. 2026143.470GitHub-Sterne

A skill published in the Next.js repository for switching an app to Partial Prefetching, so links reuse a shared app shell. It needs Next.js 16.3 or later with Cache Components already on and a passing build.

Was der Skill vermittelt

A skill published in the Next.js repository for switching an app to Partial Prefetching, so links reuse a shared app shell. It needs Next.js 16.3 or later with Cache Components already on and a passing build. With the flag still off, the agent audits every link that forces a full prefetch, agrees with the user which UI must stay instant, and records a baseline with instant() tests on a production-like build. It then opts destination routes in, turns on the partialPrefetching flag, removes the temporary route exports with a codemod and, in next dev, fixes insights about URL data read outside a Suspense boundary. It finishes with production checks and a report.

Funktionen

  • Audit links that force full prefetching
  • Record a baseline with instant() tests
  • Enable the partialPrefetching flag with a codemod
  • Fix URL-data insights with Suspense boundaries