Guide

·

·

11 min read

How to Optimize a Framer Website: A Lighthouse Score Guide

How to Optimize a Framer Website: A Lighthouse Score Guide

How to optimize a Framer website for Lighthouse: performance, accessibility, best practices, SEO, and agentic browsing, from a site scoring 99 to 100.

How to optimize a Framer website for Lighthouse: performance, accessibility, best practices, SEO, and agentic browsing, from a site scoring 99 to 100.

Copy link

Copy link

Dark blog cover featuring a Framer logo, green 100 PageSpeed score indicators, and a website performance dashboard.

Jump to

No headings found on page

Quick answer: how do you get a high Lighthouse score on Framer?

Framer already does a lot of the work for you. Your job is to stop undoing it. Keep images lean, host videos on YouTube or Vimeo, remove heavy effects on phones, limit elements that depend on JavaScript, build a clean structure with labels and alt text, and give AI agents a page they can read. That is what I did on my own site, and it scores 99 for performance and 100 for accessibility, best practices, and SEO, with 2 out of 2 on agentic browsing.

This guide covers each category, with tips specific to Framer.

A quick note on Lighthouse 13.6

Framer worked with the Lighthouse team on two flaws in how PageSpeed Insights simulates a slow phone. The fixes shipped in Lighthouse 13.6 on October 27, and PageSpeed Insights now runs it. Framer reported that some of the biggest sites built on it gained 12 to 25 points.

So your score may have changed without you touching anything. If you tested before late October, run it again. Each PageSpeed Insights report lists its Lighthouse version, so only compare scores from the same version.

What each score measures

Lighthouse reports five categories. Performance, accessibility, best practices, and SEO are scored from 0 to 100. Agentic browsing is new and works differently. It shows a pass ratio, such as 2 out of 2, instead of a number out of 100.

Two things to know before you start testing:

  • Test mobile and desktop separately. A good desktop score says little about mobile.

  • The score comes from a simulated load. Real visitors are measured separately as field data, which you can see in Google Search Console.

Performance

Performance is the hardest category to get right, and most of the work happens before you publish. These are the things I check on every site.

1. Check that Framer finished optimizing your site

Open Site Settings and look at Versions. Your site should say Optimized. If it says Optimization Error, fix that first, because the site is served in a slower form until it passes. Common causes are invalid HTML, such as a link nested inside another link, or a custom code component that crashes on the server.

2. Keep every image small

I run images through a tool like Squoosh and keep each file under about 200 to 300 KB. Resize them to the size you actually need, not the size the camera gave you. Framer compresses images again after upload, so keep the quality reasonable instead of squeezing every last byte.

3. Set image resolution to Auto

In Fill, then Image, leave Resolution on Auto. Framer then converts the image and serves a size that fits each visitor's screen. It never upscales, so a small file stays small. Avoid Auto (Lossless) unless you see banding or color problems, because it can make files 5 to 10 times larger. Upload SVGs as an image fill, not by dragging them onto the canvas.

4. Do not host videos in Framer

Framer serves uploaded videos at their original resolution, so they are heavy. Use the YouTube or Vimeo component, which adjusts quality for each connection. If you must upload a video directly, add a cover image, because it loads much faster than the first frame of the video.

5. Do not load images nobody asked for

Framer lazy loads most images below the fold, but its docs list exceptions, so do not rely on it for everything. For a card that swaps to a second image on hover, I build the second image only into the hover variant. The browser then does not fetch it until someone hovers. Many visitors never will, so that is bandwidth saved on every card.

The same idea applies to carousels, slideshows, and tickers. They load images that most visitors never see. If you use one, keep it small and keep it out of the hero.

6. Remove hover effects on phone variants

Phones have no hover, so those effects and the extra images behind them are wasted weight. In your phone variant, remove hover effects and heavy animations. Remove them instead of hiding them, so the page has less to build.

7. Be careful with elements that need JavaScript above the fold

Cookie banners, carousels, tickers, text effects, and scroll animations are added by JavaScript, so they appear later than plain elements. If one of them becomes the largest element on the screen, your Largest Contentful Paint suffers. Keep the hero simple: a plain heading and a lean image or none at all. PageSpeed Insights shows which element it picked as your LCP, so you can check.

8. Go easy on blurs and shadows

Large blurs and big shadows do not slow loading, but they make scrolling and animations feel choppy. Use them in small doses. For a big background blur, an exported image often works better than a frame with a huge blur applied.

9. Keep your structure simple

Lighthouse warns when a page nests elements more than 32 levels deep, or when a single parent has more than 60 children. Watch for frames inside frames inside frames, and for long lists built by hand instead of from the CMS. If a page is very long, consider splitting it into two pages.

10. Limit third-party scripts

Every analytics tool, chat widget, and tracker adds weight. Add a script only to the pages that need it. Where it is safe, load it with async or defer so it does not block the page. Analytics is the usual exception, because deferring it can hurt your data.

11. Use fewer fonts and weights

Every extra family and weight is another file to download. Stick to one or two families and only the weights you use. If you added custom fonts to an old project before November 2023, re-upload them so Framer converts them to the lighter WOFF2 format.

Accessibility

Accessibility is the easiest category to get to 100, because most fixes are quick. It also helps AI agents, since they read the same structure screen readers use.

1. Write real alt text

Describe what the image shows and why it is there, in a short sentence. Skip phrases like "image of". Do not stuff keywords into it.

2. Label icon-only buttons and links

A button with only an icon has no name for a screen reader. Add an aria label that says what it does, such as "Open menu" or "Copy link". Do this for social icons too.

3. Keep a real heading order

Use one H1 per page, then H2s, then H3s. Do not pick a heading level because of how it looks. In Framer you can set the style and the text tag separately, so choose the tag for structure and style it however you like.

4. Use semantic tags for your layout

Set the tag on your stacks, such as header, nav, main, section, article, and footer. These landmarks tell assistive tools and AI crawlers what each part of the page is.

5. Check color contrast

Normal text needs a contrast ratio of at least 4.5 to 1. Large text needs 3 to 1. Light gray text on a dark background is the most common failure, so check your muted text colors in both themes.

6. Make tap targets big enough

Aim for roughly 44 to 48 pixels for buttons and links on phones, with space between them. Tiny links stacked in a footer are the usual problem.

7. Label form fields

A placeholder disappears as soon as someone types, so do not use it as the only label. Give each input a visible label.

8. Make links describe where they go

"Read the guide" tells people more than "click here". It also helps search engines understand the link.

9. Test with your keyboard

Press Tab through the whole page. You should be able to reach every button and link, in a sensible order, and see where the focus is.

Best practices

This category is mostly about trust and clean code. It is the easiest to break by accident with custom code and embeds.

1. Keep the browser console clean

Open DevTools, go to Console, and reload each page. Red errors cost you points, and they usually come from custom code components or embeds.

2. Show images at the right size and ratio

Lighthouse flags images that are stretched out of proportion or too low in resolution for their space. Check your Fill and Fit settings, and avoid uploading a huge source for a small slot.

3. Review every embed and custom code snippet

Each one can add cookies, warnings, and errors. Remove anything unused, and keep any libraries you add up to date.

4. Remove leftover test code

Old scripts from experiments are easy to forget. Check the custom code settings for your whole site and for each page.

SEO

Lighthouse checks the basics here. These are the same basics that help your pages get found and understood.

1. Give every page its own title and meta description

Set both in the page settings. For CMS pages, bind them to fields so each post gets its own.

2. Use one H1 per page

It should say what the page is about, in plain words.

3. Use real links

Search engines follow links, not click handlers. If a card is clickable, make sure it has an actual link on it.

4. Keep text readable on phones

Small font sizes and cramped tap targets both count against you in the audit.

5. Submit your sitemap

Framer generates a sitemap for your site. Add it to Google Search Console and check that your pages are being indexed.

6. Add structured data when it fits

You can add JSON-LD in the custom code of a page. Use it for things like Article or FAQ markup, and only for content that is visible on the page.

AEO and agentic browsing

AEO, or answer engine optimization, is about making your content easy for AI tools to read and quote. Lighthouse now has an Agentic Browsing category that checks part of this. It looks at whether interactive elements have names, whether the page structure is valid, whether the layout stays stable, and whether an llms.txt file exists.

1. Add an llms.txt file

It is a short Markdown summary of your site for AI systems. In Framer, open Site Settings, go to Hosting, then Files, and upload it. Static file hosting is available on the Pro and Enterprise plans. After publishing, check that it loads at yourdomain.com/llms.txt. It is optional, and it is a discoverability signal, not a ranking factor.

2. Keep the accessibility tree clean

Agents read your page through the accessibility tree, the same structure as a screen reader. Everything in the accessibility section above helps here too.

3. Keep your layout stable

If elements jump around after loading, an agent can miss the button it was aiming for. Give images a fixed size, and avoid content that pops in and pushes things down.

4. Write answers first

Put a direct answer near the top of the page. Use headings that match the questions people ask, and add an FAQ section. This is how I write every post on this blog.

Test, change one thing, test again

Do not change ten things and hope. Change one, then test.

  • Run the test more than once, because results vary between runs.

  • Test mobile and desktop separately.

  • Open the report and look at which element is your LCP, then fix that one first.

  • After a Lighthouse update, retest before you decide anything got worse.

  • Use Google Search Console for real visitor data, since it reflects actual experience and not a simulation.

Quick checklist before you publish


  • Site status says Optimized.

  • Images are resized, under about 200 to 300 KB, and set to Auto.

  • Videos live on YouTube or Vimeo.

  • Hover effects and heavy animations are removed from phone variants.

  • The hero has no carousel, ticker, or JavaScript-heavy effect.

  • Every image has alt text, and every icon button has a label.

  • One H1, a clean heading order, and semantic tags on layout stacks.

  • Contrast and tap targets pass on mobile.

  • The console has no red errors.

  • Each page has its own title and meta description.

  • llms.txt is uploaded and loads at the root of your domain.

  • You tested mobile and desktop, more than once.

The bottom line

A perfect score is not the goal, a fast and clear site is. Most of what raised my scores was removing things, not adding them. Start with images, videos, and the hero, and the rest gets easier.

Frequently asked questions

Can a Framer website get a perfect Lighthouse score?

Yes, Framer sites can score very high. My site scores 99 for performance and 100 for accessibility, best practices, and SEO. Scores vary by device, test run, and Lighthouse version.

Why is my Framer performance score low?

The usual causes are heavy images, uploaded videos, JavaScript-driven elements in the hero, many third-party scripts, and a very large page structure. Check which element PageSpeed Insights picks as your largest paint first.

Do I need to convert images to WebP before uploading to Framer?

You do not have to, because Framer converts uploaded images and serves a size that fits each screen when Resolution is set to Auto. I still recommend it. I resize and compress every image with a tool like Squoosh, export it as WebP, and keep it under about 200 to 300 KB. A lean source file means less for Framer to process and a lighter first load.

What is agentic browsing in Lighthouse?

It is a category that checks how well a page works for AI agents. It shows a pass ratio, such as 2 out of 2, instead of a score out of 100, and covers things like accessible names, layout stability, and llms.txt.

Does Framer support llms.txt?

Yes. Upload the file in Site Settings under Hosting and Files, then publish. Static file hosting is available on the Pro and Enterprise plans.

Create a free website with Framer, the website builder loved by startups, designers and agencies.