I look after the marketing site for Fashio , a small product that generates on-model photos and virtual try-ons for fashion e-commerce. The site is a Next.js 16 App Router project: mostly Server Components, markdown content with YAML frontmatter, 24 locales, and a handful of "use client" components for menus and interactive bits.
In August I was doing an accessibility pass and noticed the homepage was shipping roughly 2 MB of JavaScript . For a page that is mostly text, images and a mega-menu, that is absurd. This post is about where that weight came from, how I found it, and the two fixes that took the homepage from 1995 KB to 676 KB of JS.
Neither cause showed up in Lighthouse.…