From d1990e05fc4c11b177bd4d503001c310003aabc2 Mon Sep 17 00:00:00 2001 From: Marc LeBlanc <7050295+marcleblanc2@users.noreply.github.com> Date: Thu, 17 Sep 2026 04:30:43 -0600 Subject: [PATCH] fix/perf: Do not prefetch the header Changelog link The Changelog link in the desktop header and mobile navigation was a next/link, so every docs page prefetched the changelog route (about 61 requests and 500 KB per page view in the audit). Render it as a plain anchor, matching the external sidebar links. Found by the docs site audit in https://ampcode.com/threads/T-01a0ae50-f7f0-779c-aa66-3887c9953e33 Amp-Thread-ID: https://ampcode.com/threads/T-01a0aed2-5fbe-7768-85ea-1378bf98f9ff Co-authored-by: Amp --- src/components/Layout.tsx | 7 +++++-- src/components/MobileNavigation.tsx | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index ee035ba5a..81a71217b 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -74,7 +74,10 @@ function Header() {
- @@ -82,7 +85,7 @@ function Header() { - +
- @@ -115,7 +116,7 @@ export function MobileNavigation() { - +