---
title: "Speed Up a Framer Site Converted to Next.js | Deframer"
description: "Make a converted Framer site faster in Next.js: measure first, then tune fonts, images, browser-only components, third-party scripts and cache headers."
url: https://deframer.co/blog/performance-tuning-a-converted-framer-site
---

# Performance tuning a converted Framer site in Next.js

Speed up a Framer site converted to Next.js: measure first, then tune fonts, images, browser-only components, scripts and caching headers.

Deframer

**Published**

12 September 2026

**Updated**

1 November 2026

**Reading time**

6 min

- [Performance](https://deframer.co/blog?tag=performance)
- [Next.js](https://deframer.co/blog?tag=nextjs)
- [Core Web Vitals](https://deframer.co/blog?tag=core-web-vitals)

![Deframer cover: “Measure first, then tune.” Beside it, a list of Fonts, Images, Components, Scripts and Caching with Images selected](https://deframer.co/_next/image?url=%2Fapi%2Fcms%2Fmedia%2Ffile%2Fperformance-tuning-a-converted-framer-site.webp&w=3840&q=75)

A Framer site converted to Next.js with Deframer starts from the same assets, fonts and animations as the published site, so its performance should begin close to the original. To improve on that, measure the production build with Lighthouse or PageSpeed Insights and your own Core Web Vitals data, then work through the usual levers in a Next.js App Router project: font loading, image delivery, components that render only in the browser, third-party scripts carried over from custom code, and caching headers on your host. Change one thing at a time and measure again. The examples are Next.js; the same levers apply to a [TanStack Start](https://deframer.co/framer-to-tanstack-start), [Astro](https://deframer.co/framer-to-astro), [React Router](https://deframer.co/framer-to-react-router) or [Vite](https://deframer.co/framer-to-vite) export, and Astro, React Router and Vite already prerender every page at build time.

This post is a practical order of work. It doesn't promise numbers, because results depend on your site's content, your host and your visitors.

## Step 1: Measure before you change anything

### Set a baseline

1. Build and run the production version locally: `npm run build`, then `npm start`. Never measure `npm run dev`; development mode is much slower and unrepresentative.
2. Run Lighthouse in Chrome DevTools against the same pages on the published Framer site and on your local or staging build. Use the same device profile for both.
3. Once deployed, check the pages in PageSpeed Insights. When your site has enough traffic, it also shows field data from real Chrome users, which matters more than any lab score.
4. Write the three Core Web Vitals down per page: Largest Contentful Paint (LCP), Interaction to Next Paint (INP) and Cumulative Layout Shift (CLS).

Lab scores vary between runs. Run each test a few times and compare medians rather than single results.

### Collect your own field data

Next.js can report Web Vitals from real visits. Add a small client component (a new file you create):

tsx

```
// src/app/web-vitals.tsx (new file)
"use client";

import { useReportWebVitals } from "next/web-vitals";

export function WebVitals() {
  useReportWebVitals((metric) => {
    // Send to your analytics endpoint instead of the console in production.
    console.log(metric.name, Math.round(metric.value));
  });
  return null;
}
```

Render `<WebVitals />` inside `<body>` in `src/app/layout.tsx`. Check the Next.js docs for the current shape of the metric object before sending it anywhere.

### Check how routes are rendered

The `next build` output lists every route and marks whether it is prerendered or rendered on demand. CMS detail pages in a converted project are prerendered from `generateStaticParams`, with `dynamicParams = false`, so they are served as static HTML. If you add code that reads cookies or headers in a route, it may become dynamic; the build output is where you'll notice.

## Step 2: Fonts

By default, the converted project loads fonts from the same CDNs the published site uses. Each family gets an `@font-face` file in `src/styles/fonts/`, with `font-display: swap`, and the root layout connects early to those hosts:

tsx

```
<link rel="preconnect" href="https://framerusercontent.com" />
<link rel="preconnect" href="https://framerusercontent.com" crossOrigin="" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
```

Things worth trying, one at a time:

1. **Remove unused families.** If a redesign dropped a font, delete its file in `src/styles/fonts/` and its import. Faces that no text uses are usually not downloaded, but fewer rules are easier to reason about.
2. **Preload the one font your hero text uses.** A `<link rel="preload" as="font" type="font/woff2" crossOrigin="">` for that file can help LCP when the largest element is text. Preloading too many files has the opposite effect.
3. **Serve fonts from your own domain.** Converting with "Assets in the project" puts the font files in `public/fonts/`, which removes a connection to another host. Check your font licenses before self-hosting; the post on [assets on the CDN or in the project](https://deframer.co/blog/framer-fonts-and-assets-cdn-vs-local) covers that choice.

## Step 3: Images

The converted `next.config.ts` sets `images: { unoptimized: true }`. Images keep the responsive `srcSet` the published site uses, with width variants served by Framer's CDN:

tsx

```
srcSet: "https://framerusercontent.com/images/….svg?scale-down-to=512 512w, …?scale-down-to=1024 1024w, ….svg 1521w",
```

That already gives browsers a choice of sizes. Your options from here:

| Option | What changes | Trade-off |
| --- | --- | --- |
| Keep the CDN `srcSet` (default) | Nothing | Images keep depending on Framer's CDN. |
| Convert with "Assets in the project" | Images and every `srcSet` variant move to `public/images/` | You serve them from your host; you are responsible for compression and cache headers. |
| Adopt `next/image` for key images | You replace specific images by hand and configure remote patterns or local files | More code to maintain; worth it mainly for your largest, most visible images. |

Whatever you choose, look at the LCP element Lighthouse reports. If it's an image, make sure it isn't lazy-loaded and that its `sizes` value matches how wide it really displays.

## Step 4: Components that render only in the browser

Code components that need the browser load after hydration (through the kit's `clientOnly`), and the result page lists them under "Components that render only in the browser." Two checks help:

1. **Reserve their space.** If one sits above the fold, give its container a fixed height or `aspect-ratio` in the CSS module so the page doesn't shift when it mounts. That protects CLS.
2. **Question heavy ones.** WebGL backgrounds, 3D scenes and large sliders are often the biggest JavaScript on the page. If one is decorative, consider a static image on Phone, or loading it only when it scrolls into view.

Appear animations also affect perceived speed. If your hero heading fades in after a delay, LCP may land later than you expect. Shortening that delay is a design decision as much as a technical one; animation values live in the view files and play through `motion/react`, as the post on [keeping Framer animations with Motion](https://deframer.co/blog/keeping-framer-animations-in-nextjs-with-motion) explains.

## Step 5: Third-party scripts from custom code

Site and page custom code from Framer (analytics, chat widgets, tag managers) is carried over as real elements in the layout and routes. Each third-party script competes with your own code for the main thread, which often shows up as a worse INP.

1. List every script in `src/app/layout.tsx` and the route files.
2. Remove the ones you no longer use. Old tracking snippets are common.
3. For the rest, consider moving them to `next/script` with a later loading strategy, such as `afterInteractive` or `lazyOnload`, where the vendor supports it.
4. Re-measure INP and Total Blocking Time after each change.

## Step 6: Caching headers on your host

Next.js serves its own build output under `/_next/static/` with long-lived caching. Files in `public/` are different: their names don't change when their contents change, so hosts are more careful with them. If you converted with "Assets in the project", you can set headers yourself in `next.config.ts`:

ts

```
const nextConfig: NextConfig = {
  // …the existing options
  async headers() {
    return [
      {
        source: "/fonts/:path*",
        headers: [{ key: "Cache-Control", value: "public, max-age=31536000, immutable" }],
      },
      {
        source: "/images/:path*",
        headers: [{ key: "Cache-Control", value: "public, max-age=604800" }],
      },
    ];
  },
};
```

Use `immutable` only for files you will rename whenever you change them. Some hosts apply their own caching rules on top of these, so check your provider's docs; the [deployment guide](https://deframer.co/blog/deploy-converted-framer-site-vercel-netlify-cloudflare-fly) covers the common hosts.

## A short checklist

1. Baseline the published site and the production build with the same tool and profile.
2. Fix the LCP element first, then layout shifts, then interaction delays.
3. Change one thing per commit and re-measure.
4. Keep the original site's numbers in your notes, so you know when you've improved on it.

If a conversion didn't fit within the limits because of asset size, see the [limits](https://deframer.co/#limits) and retry with assets on the CDN.

## FAQ

### Will a converted site be faster than the Framer original?

It depends on the site and your host, so measure rather than assume. The converted project starts from the same assets and animations, and gives you direct control over fonts, images, scripts and caching from there.

### Should I remove \`images: { unoptimized: true }\`?

Only if you also switch images to `next/image`. The converted code uses the published site's `srcSet` from the CDN, so the setting by itself changes little; plan the change image by image.

### Do the preconnect links still matter with "Assets in the project"?

Less so. Once fonts and images are in `public/`, the connections to the CDN hosts are needed only for what stays remote, such as fonts declared through Google Fonts CSS.

### Which Core Web Vital should I fix first?

Start with whichever is worst in your field data. Without field data, LCP is usually the clearest first target because it reflects what visitors see first.

Deframer

## Move your Framer site to clean code.

Convert your site free, review the result, then download it as a TypeScript project you own: Next.js, Astro, React, TanStack Start, React Router, Nuxt or HTML.

[Convert your site](https://deframer.co/dashboard)[Pricing](https://deframer.co/pricing)

## Keep reading

[All posts](https://deframer.co/blog)

- ![Deframer cover: “Audit first, then migrate.” Beside it, four tiles, Crawl, Baselines, Redirect map and Tests, with Redirect map selected](https://deframer.co/_next/image?url=%2Fapi%2Fcms%2Fmedia%2Ffile%2Fwebsite-migration-audit-checklist.webp&w=3840&q=75)

  Migration 25 Oct 2026 9 min read

  ### [How to audit a website before migrating it to Next.js](https://deframer.co/blog/website-migration-audit-checklist)

  Audit a site before moving it to Next.js: inventory URLs, record traffic and Core Web Vitals, plan redirects and write acceptance tests. Framer steps marked.
- ![Deframer cover: “Same test, both sides.” Beside it, two cards, Framer site to Next.js, with Next.js selected](https://deframer.co/_next/image?url=%2Fapi%2Fcms%2Fmedia%2Ffile%2Fframer-pagespeed-before-and-after-conversion.webp&w=3840&q=75)

  Performance 27 Sep 2026 4 min read

  ### [How to compare a Framer site's PageSpeed before and after converting](https://deframer.co/blog/framer-pagespeed-before-and-after-conversion)

  Compare your Framer site's PageSpeed Insights scores with the converted Next.js version: what to measure and how to read it fairly.
- ![Deframer cover: “Hosting costs, line by line.” Beside it, four tiles, Site plan, Hosting, Your time and Conversion, with Hosting selected](https://deframer.co/_next/image?url=%2Fapi%2Fcms%2Fmedia%2Ffile%2Fframer-hosting-vs-self-hosting-costs.webp&w=3840&q=75)

  Costs 10 Sep 2026 5 min read

  ### [Framer hosting vs. self-hosting a Next.js site, compared by cost structure](https://deframer.co/blog/framer-hosting-vs-self-hosting-costs)

  Framer hosting vs. self-hosting Next.js, compared by cost structure rather than prices that change, with a worksheet you can fill in.
