• Home
  • Blog
  • Next.js Website Speed Optimization: A Core Web Vitals Checklist for SaaS Sites

Next.js Website Speed Optimization: A Core Web Vitals Checklist for SaaS Sites

A prioritised Next.js speed checklist for SaaS sites: fix LCP, INP and CLS with next/image, next/font, Server Components, next/script and caching.

Many SaaS marketing sites are built by teams busy building the product. The site gets a hero video, a chat widget, three analytics tags and a pricing page that checks whether you are logged in — and one day someone runs PageSpeed Insights and sees red.

This checklist is for founders and CTOs who want to know what to fix first on a Next.js site. It is ordered by impact: the top items usually move Core Web Vitals the most for the least work. Next.js details are checked against the Next.js 16 documentation (Next.js 16 was released in October 2025); older versions use some different API names.

Core Web Vitals in one minute

Google's Core Web Vitals are three measurements of real-user experience:

MetricWhat it measures"Good" threshold
Largest Contentful Paint (LCP)How quickly the main content (often the hero image or headline) appears2.5 seconds or less
Interaction to Next Paint (INP)How quickly the page responds to clicks, taps and key presses200 milliseconds or less
Cumulative Layout Shift (CLS)How much the layout jumps around while loading0.1 or less

They are assessed at the 75th percentile of page loads, split by mobile and desktop. So your site passes when at least three in four real visits hit the target, not when your own laptop does.

How much do they matter for SEO? Google says Core Web Vitals "are used by our ranking systems", but also that "Google Search always seeks to show the most relevant content, even if the page experience is sub-par" (Google Search Central). Relevance comes first; speed is how you keep the visitors — trial sign-ups and demo requests — you have already earned.

Why SaaS sites fail Core Web Vitals: a quick diagnostic

Before you fix anything, find out which metric is failing and why. Next.js SaaS sites tend to fail for a handful of common reasons:

SymptomMetric hitLikely cause on a Next.js site
Hero appears late, especially on mobileLCPHero image left lazy-loaded (the next/image default), oversized images, slow server response
Clicks feel sluggish, menus lagINPLarge client-side JavaScript bundles, chat and analytics scripts on the main thread
Text or buttons jump as the page loadsCLSWeb fonts swapping in, images or embeds without dimensions, banners injected above content
Every page is slow, not just oneLCP (via server time)Marketing pages rendered on every request instead of prerendered and cached

The last row is easy to miss. When the marketing site and the app share one codebase and the root layout reads cookies to show a "Go to dashboard" button, every public page — home, pricing, blog — becomes dynamically rendered. The Next.js production checklist warns about exactly this: request-time APIs such as cookies and the searchParams prop opt the route into dynamic rendering, or the whole application if used in the root layout.

The checklist, ordered by impact

1. Load the LCP image early, not lazily

On many SaaS home pages the LCP element is the hero image or product screenshot. The next/image component lazy-loads images by default, which is right for images further down the page and wrong for the hero. Google's guidance is blunt: "Never lazy-load your LCP image" (web.dev).

In Next.js 16, the old priority prop on next/image is deprecated. The Image component docs point to three ways to handle above-the-fold images:

  • loading="eager" to turn off lazy loading.
  • fetchPriority="high" to ask the browser to fetch that image ahead of other images. On its own it does not turn off lazy loading.
  • The preload prop, which inserts a preload link in the page head so the browser starts downloading the image before it finds it in the body. Don't combine it with loading or fetchPriority, or use it when different images could be the LCP element depending on screen size.

In most cases the docs recommend loading="eager" or fetchPriority="high" rather than preload.

If your codebase still uses priority, replace it with preload to keep the same behaviour, or with loading="eager" if you only need to switch off lazy loading.

2. Size images properly

The next thing to check is how many bytes each image costs. next/image serves correctly sized images in modern formats (WebP by default; AVIF can be enabled in next.config) and uses width and height to reserve space, which prevents layout shift.

On screenshot-heavy SaaS sites, two settings matter most:

  • sizes. Without it, the browser assumes the image is as wide as the viewport and can download a far larger file than needed. Give every image narrower than the screen a sizes value.
  • Dimensions. Always set width and height (or use fill inside a sized container) so space is reserved before the image arrives.

3. Move fonts to next/font

Fonts loaded from an external stylesheet cost an extra connection and often cause text to jump when the web font replaces the fallback. The next/font module self-hosts fonts — including Google Fonts, which are downloaded at build time so no requests are sent to Google from the browser — and is designed to load web fonts without layout shift. By default it also generates an adjusted fallback font to reduce CLS.

Practical rules: use one font family if you can, prefer a variable font over several weights, and specify subsets (for example latin) so only the characters you need are preloaded.

4. Ship less JavaScript to the browser

This is the main lever for INP. In the App Router, pages and layouts are Server Components by default. According to the Next.js production checklist, Server Components don't require JavaScript to render on the client, so they have no impact on the size of your client-side JavaScript bundles. The catch, as the Server and Client Components docs explain: once a file is marked "use client", everything it imports and renders directly is included in the client bundle.

The common mistake on SaaS sites is putting "use client" at the top of a whole page or layout because one element (a pricing toggle, a mobile menu) needs state. The fix is to keep the page as a Server Component and push "use client" down to the small interactive component.

Then look at what is in your bundles:

  • Run a bundle analyser to find heavy dependencies: on Next.js 16.1 and later with Turbopack (the default bundler), next experimental-analyze; on webpack builds, @next/bundle-analyzer (package bundling guide).
  • Lazy-load heavy Client Components that aren't needed immediately — demo videos, charts, modals — with next/dynamic (lazy loading guide).
  • Question every animation or UI library on the marketing site; each runs on the main thread that responds to clicks.

5. Tame third-party scripts with next/script

Chat widgets, tag managers, analytics, heatmaps and A/B testing tools are a common reason a well-built SaaS site still fails INP. Google's guidance on third-party JavaScript explains why: CPU-heavy script parsing and execution can delay user interaction, and long tasks can make event handlers slow. The first fix it recommends is the simplest — if a script doesn't add clear value, remove it.

For the scripts you keep, use next/script and choose the strategy deliberately:

StrategyWhen it loadsTypical use
beforeInteractiveBefore any Next.js code and before hydration; must go in the root layoutBot detectors, cookie consent managers
afterInteractive (default)Early, but after some hydrationTag managers, analytics
lazyOnloadDuring browser idle time, after other resourcesChat support plugins, social media widgets
worker (experimental)In a web workerNot yet stable and does not work with the App Router

Use lazyOnload for chat widgets (the next/script reference lists chat support plugins as an example), and, as the Next.js scripts guide recommends, include third-party scripts only in the pages or layouts that need them.

6. Prerender and cache your marketing pages

Server response time is part of LCP: the first subpart of LCP is Time to First Byte (web.dev). A home page that waits for a database query on every visit starts behind.

Next.js prerenders pages at build time where it can, and caching in version 16 works in one of two ways:

  • Without Cache Components (the previous model). Use Incremental Static Regeneration: export a revalidate value from the page and Next.js serves the prerendered page while refreshing it in the background, at most once per interval. Note that fetch requests are not cached by default in this model; you opt in.
  • With Cache Components (enabled with cacheComponents: true in next.config). Caching is entirely opt-in: you add the use cache directive to functions, components or pages and set lifetimes with cacheLife, which replaces the revalidate segment config (caching docs, migration guide).

Either way, home, pricing, features and blog should be served from a cache, with anything personal (the logged-in state, the user's name) isolated in a small component instead of making the whole route dynamic.

7. CDN, compression and browser caching

The basics still apply, and Next.js handles much of them for you:

  • CDN. Serve the site from a CDN so visitors far from your server get pages and assets from a nearby location. Prerendered pages and static assets are what make a CDN effective.
  • Compression. When you run Next.js with next start, it gzip-compresses rendered content and static files by default (compress docs). If your proxy or CDN handles compression — for example with Brotli — you can turn Next.js's compression off and let it do the work.
  • Browser caching. Static assets under /_next/static/ have content hashes in their filenames and are served with a one-year, immutable cache header (CDN caching guide). Repeat visitors don't download them again. Make sure your CDN or proxy doesn't overwrite those headers.

8. Stop layout shifts from banners and embeds

Remaining CLS often comes from things injected above existing content: cookie banners, announcement bars, embedded videos and forms. Reserve space for them, show banners as overlays rather than pushing content down, and give embeds a fixed aspect ratio.

How to measure, and what to ignore

Measure with field data first, lab data second.

  • PageSpeed Insights shows both. The field data comes from the Chrome User Experience Report and covers a trailing 28-day period; the 0–100 performance score comes from a simulated Lighthouse run on a single device and network. As Google's documentation puts it, "having good lab data does not necessarily mean real-user experiences will also be good."
  • The Core Web Vitals report in Search Console uses the same real-world data and groups similar URLs, so you can see whether it is the blog or the pricing page that fails.
  • Lighthouse in Chrome DevTools is for debugging a specific page. The Next.js production checklist suggests running it in incognito and measuring a production build (next build, then next start).
  • useReportWebVitals is a Next.js hook that reports metrics including LCP, CLS and INP from real visitors, so you can send them to your own analytics or monitoring tool. It needs "use client", so put it in a small separate component imported by the root layout.

Google Analytics 4 has no built-in site speed report like the one Universal Analytics had, so it isn't the right tool for this on its own.

Two cautions. Field data lags: because of the 28-day window, a fix takes weeks to show fully. And don't chase a perfect Lighthouse score — a page that passes all three Core Web Vitals for real visitors is in better shape than one that scores 100 on a fast laptop and fails on mid-range phones.

A realistic order of work

For a typical SaaS marketing site on Next.js, we would work in this order:

  1. Diagnose. Check field data in PageSpeed Insights and Search Console, identify which metric fails on which page group, and check whether public pages are dynamically rendered.
  2. Quick wins. Hero image loading, sizes on large images, next/font, lazyOnload for chat, removing unused third-party scripts.
  3. Structural fixes. Pushing "use client" boundaries down, splitting heavy components, moving public pages to prerendering and caching, isolating logged-in state.
  4. Monitor. Keep useReportWebVitals or a monitoring tool running, and review new third-party scripts before they go live.

Next steps

If your Next.js site fails Core Web Vitals and your team would rather keep building the product, Pine Technologies offers two options:

  • Have us do it. Our web development team and Next.js development services can take on performance fixes and rebuilds. Project-based work has a fixed scope, timeline and budget, starts from $10,000 and includes 3 months of post-launch support.
  • Add a Next.js developer to your team. Hire a pre-vetted Next.js developer from $1,500 to $3,500 per month, all-in. We present candidates within 48 hours, you interview and choose, and you can start with a free test task before committing.

Either way, all code and materials always belong to you.

Frequently Asked Questions

How do I pass Core Web Vitals (LCP, INP, CLS) on a Next.js site?

Aim for LCP of 2.5 seconds or less, INP of 200 milliseconds or less and CLS of 0.1 or less, measured at the 75th percentile of real visits on mobile and desktop. On Next.js the biggest wins usually come from loading the hero image eagerly, using next/font, keeping most components as Server Components, loading third-party scripts with next/script, and prerendering marketing pages. Confirm the result with field data in PageSpeed Insights or Search Console, not just a Lighthouse score.

Why is my Next.js site slow, and what are the highest-impact fixes?

The usual causes are a hero image that is lazy-loaded by default, too much client-side JavaScript from broad "use client" boundaries, third-party scripts competing for the main thread, and marketing pages that are rendered on every request because something like cookies is read in the root layout. Fix the LCP image first, then cut client JavaScript and third-party scripts, then make sure public pages are prerendered and cached.

Do third-party scripts (chat, analytics, tag managers) hurt INP?

They can. Scripts that take a long time to parse and run create long tasks on the main thread, which delay the page's response to clicks and taps. In Next.js, load them with next/script, use the lazyOnload strategy for chat widgets and social embeds, include them only on the pages that need them, and remove any that don't earn their place.