next-partial-prefetching-optimizer turns a navigation goal into an instant() test, then refactors the app until that test passes, tuning which UI arrives before the click.
next-partial-prefetching-optimizer
Optimize what selected Next.js client navigations include before the click under Partial Prefetching. Use after Cache Components and Partial Prefetching are adopted when the user wants selected URL-specific UI to be instant, wants reusable content to wait for navigation, or needs to choose between default, viewport, and intent prefetching. Requires Next.js 16.3+.
Informations de source
- Dépôt
- vercel/next.js
- Dernière activité de la source
- 9 octobre 2026 à 17:07
- Langue détectée de SKILL.md
- anglais
- Étoiles
- 143 245
- Forks
- 33 586
next-partial-prefetching-optimizer: Test instant
Optimizes selected Next.js navigations under Partial Prefetching by defining which destination UI must be ready before a click and protecting that
Prerequisites
Requires Next.js 16.3 or later with Cache Components and Partial Prefetching adopted.
How to use
Name each source link and destination. Turn the required prefetched UI, navigation-only UI, and trigger into an instant() test, record the current behavior, make the smallest change, and keep the passing test.
Options d'installation
Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.
Vérifiez les fichiers source
Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.
Affichage de SKILL.md
| name | next-partial-prefetching-optimizer |
|---|---|
| description | Optimize what selected Next.js client navigations include before the click under Partial Prefetching. Use after Cache Components and Partial Prefetching are adopted when the user wants selected URL-specific UI to be instant, wants reusable content to wait for navigation, or needs to choose between default, viewport, and intent prefetching. Requires Next.js 16.3+. |