Vercel Speed Insights 開始追蹤 App 內切換頁面的速度
Speed Insights now measures soft navigations
使用者在 App 內切換頁面時,內容會更新,但不會重新載入整個頁面,過去的速度資料看不到這段過程。
- Vercel Speed Insights 現在會追蹤這類切換,記錄 LCP、FCP、INP 和 CLS,並納入 Real Experience Score。
- 由於沒有新的檔案請求,不會記錄 TTFB。追蹤預設開啟,儀錶板也新增導覽型別篩選,可分開檢視完整載入或頁面內切換的資料。這些事件會計入 Speed Insights Plus 用量,也可透過程式設定關閉。
AI 伴隨問答
針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:
過去只看完整載入時的速度,容易漏掉使用者在 App 內切換頁面時的體驗;這次新增的資料可用來比較兩種導覽情況。
Speed Insights now measures soft navigations: client-side route changes that update page content without a full reload. This means you can now track performance as users move through your app, not just on full-page loads.
Speed Insights captures LCP, FCP, INP, and CLS for soft navigations and includes these measurements in your Real Experience Score. TTFB is not captured because there is no new document request.
Soft-navigation tracking is enabled by default for all projects using Speed Insights, with no action required. It works with modern web frameworks such as Next.js, SvelteKit, and Nuxt, in Chromium-based browsers.
In your project's Speed Insights dashboard, use the new Navigation Type filter to view All, Hard, or Soft navigation data.


Soft-navigation events count toward Speed Insights Plus usage. Existing Plus customers will receive an email with details about when billing for these events begins. For projects that newly enable Plus, these events are billed from the start.
To disable soft-navigation tracking, set softNavs to false in your application code and redeploy. This option requires @vercel/speed-insights version 2.1.0 or later:
<SpeedInsights softNavs={false} />
// or
injectSpeedInsights({ softNavs: false });
Disable soft-navigation tracking in your application.
Learn more in the Speed Insights documentation.