Skip to main content

next-partial-prefetching-optimizer:验证即时导航

针对选定的 Next.js 导航,在 Partial Prefetching 下界定点击前应备好的目标界面,并用 instant() 测试保护行为。

来源信息

仓库
vercel/next.js
最近来源活动
2026年10月9日 17:07
检测到的 SKILL.md 语言
英语
星标
143,245
Forks
33,586

必要前提

需要 Next.js 16.3 或更新版本,且项目已采用 Cache Components 和 Partial Prefetching。

操作说明

逐个指定来源链接与目标页面,把预取界面、导航时加载的界面和触发方式写进 instant() 测试;记录现状、做最小优化并保留通过的测试。

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
3 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
namenext-partial-prefetching-optimizer
descriptionOptimize 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+.