Framer Websites
ServicesPricingWorkBlogAboutBook a Call
Framer Websites

The Framer-first web design agency. We build high-converting websites exclusively in Framer for B2B companies.

Services

  • Landing Pages
  • SaaS Websites
  • Corporate Sites
  • Portfolio Sites
  • Website Redesigns
  • All Services

Industries

  • SaaS
  • Healthcare
  • Non-Profit
  • Fintech
  • E-Commerce
  • All Industries

Compare

  • Framer vs Webflow
  • Framer vs WordPress
  • Framer vs Squarespace
  • Framer vs Wix
  • All Comparisons

Company

  • About
  • Pricing
  • Blog
  • Contact

© 2026 Framer Websites. All rights reserved.

PrivacyTerms
← Back to blogSEO & Performance

Website Speed Optimization: A Complete Guide

May 1, 2026
Website speed optimization guide

Website speed optimization is the practice of making pages load and respond as fast as possible across every device and connection. The bar in 2026 is two seconds to interactive on mobile over a 4G connection. Sites that meet that bar convert better, rank better, and earn more revenue from the same traffic. This guide covers image optimization, lazy loading, code splitting, CDNs, caching, fonts, server response time, and the hosting decisions that matter most. Every recommendation below has measurable impact.

Why Website Speed Matters More Than Ever

Three forces converged in 2026 to make speed a first-order concern: mobile traffic now exceeds 65% globally, Core Web Vitals are a confirmed ranking signal, and consumer patience continues to decline. Studies consistently show that every 100 milliseconds of load time costs roughly 1% of conversions on ecommerce and 0.5% on B2B lead gen.

The compounding effect is brutal. A site that loads in 4 seconds versus 2 seconds is leaving 20-30% of its potential conversions on the table. On a site doing $1M ARR from organic traffic, that is $200-300K of lost annual revenue from a single technical issue.

The Speed Optimization Hierarchy

Optimization effort should follow impact. The hierarchy below ranks fixes by typical lift per hour of work invested.

  1. Image optimization (highest impact, lowest effort)
  2. Caching and CDN (high impact, moderate effort)
  3. Render-blocking resources (high impact, moderate effort)
  4. Third-party scripts (high impact, often political)
  5. Font loading (medium impact, low effort)
  6. JavaScript optimization (medium impact, high effort)
  7. Server response time (variable impact, sometimes requires hosting change)
  8. HTML and CSS minification (low impact, low effort)

Start at the top. Most sites that follow this order get to under 2 seconds without ever touching JavaScript optimization.

Image Optimization

Images are usually 50-80% of total page weight on a typical marketing site. Three optimizations together can reduce image weight by 80%.

Modern Formats

Serve AVIF first (best compression), WebP fallback, JPEG legacy. The `` element handles this elegantly. AVIF compresses 50% smaller than WebP at the same visual quality, and WebP is 25-35% smaller than JPEG.

Responsive Images

Serve appropriately sized images per viewport. A hero image displayed at 1200px wide on desktop should not be the same file delivered to a 375px iPhone. Use `srcset` and `sizes` attributes, or platform features that handle this automatically.

Lazy Loading

Add `loading=”lazy”` to every image below the fold. Browsers handle the rest. The performance gain on long pages is significant: only the visible images load on initial render.

Compression

Even after format and sizing optimization, run images through a compression tool (Squoosh, ImageOptim, or platform-built-in compression). Aim for 70-80% quality. Most viewers cannot tell the difference, but the file size drops 30-50%.

Caching and CDN

A CDN serves your static assets from servers physically close to your visitors. The latency reduction is dramatic: a visitor in Tokyo loading from a US-only origin server might wait 250ms per asset. The same asset from a Tokyo edge node loads in 30ms.

Cloudflare, Bunny CDN, Fastly, and Netlify Edge are all solid options. For most marketing sites, Cloudflare’s free tier is enough.

Browser caching tells visitors’ browsers to remember static assets so they do not re-download on subsequent visits. Set `Cache-Control` headers with long max-age values for fingerprinted assets (CSS, JS bundles with hash in filename) and shorter values for HTML.

Render-Blocking Resources

By default, browsers cannot render the page until they have downloaded and parsed every CSS file and synchronously loaded every JavaScript file in the head. This blocks the first paint.

The fixes:

  • Inline critical CSS for the above-the-fold content. The rest can load asynchronously.
  • Defer non-critical JavaScript with `defer` or `async` attributes.
  • Move scripts to the end of body if you cannot use defer/async.
  • Code-split bundles so the homepage does not download every page’s JavaScript.

Third-Party Scripts

Analytics, tag managers, ads, chat widgets, A/B test tools, and social embeds are usually the worst performance offenders on B2B and ecommerce sites. They are also the hardest to remove because each one has an internal champion.

The audit process:

  1. List every third-party script on the homepage.
  2. For each, identify what business outcome it produces.
  3. If the outcome is unclear or the script is unused, remove it.
  4. For scripts that stay, check if a lighter alternative exists (Plausible vs Google Analytics, Crisp vs Intercom).
  5. Defer or lazy-load anything that does not need to load immediately.

Most sites can shed 30-50% of their JavaScript weight through this audit alone.

Font Loading

Web fonts are a common silent performance killer. The default behavior (FOIT, flash of invisible text) blocks rendering until the font loads.

The 2026 best practices:

  • Self-host fonts when possible. Google Fonts CDN is fast but requires an extra DNS lookup.
  • Subset fonts to only the characters you need. A full Latin set is often 80KB. The characters you actually use might be 15KB.
  • Use `font-display: swap` to show fallback text while the web font loads.
  • Preload critical fonts with ``.
  • Limit font variants. Two weights and one italic is usually plenty.

Server Response Time

If your server takes 800ms to return the HTML, no amount of frontend optimization will get you to a 2-second page. Time to First Byte (TTFB) under 600ms is the bar.

What slows TTFB: shared hosting under load, uncached database queries, heavy CMS plugins, slow third-party API calls in the request path. The fixes are platform-specific.

For WordPress: page caching, object caching, a CDN, fewer plugins, better hosting. For static sites and Jamstack: edge caching, ISR, proper CDN configuration. For Framer: the platform handles this automatically with edge delivery.

Hosting choice often matters more than people realize. A $5/month shared host with 30 plugins will never compete with a properly configured Jamstack stack on Vercel or Netlify, regardless of how much you optimize.

Measuring Speed

Three tools cover most diagnostic needs.

PageSpeed Insights for Core Web Vitals field data and lab data. Same tool, two views.

WebPageTest for detailed waterfall analysis. Run it from a slow connection (3G Slow) on a real device. The results are sobering for most sites.

Chrome DevTools Performance tab for diagnostic deep dives. Record a page load and you can see exactly which scripts blocked rendering, which images were oversized, and where time was spent.

For ongoing monitoring, Calibre, SpeedCurve, and DebugBear track Core Web Vitals across all your pages over time and alert when regressions hit.

Performance Budgets

Set them. Enforce them in CI. The basic budgets:

  • Total page weight under 1.5 MB
  • JavaScript bundle under 200 KB compressed
  • LCP under 2.0 seconds
  • INP under 150 milliseconds
  • CLS under 0.05

When a deploy exceeds budget, the build fails. The discipline prevents performance regressions that creep in over months.

Platform-Specific Notes

WordPress sites: cache plugins (WP Rocket, LiteSpeed Cache, FlyingPress), image optimization (ShortPixel, Smush), CDN, and minimizing plugins. The biggest gains often come from removing plugins, not adding them.

Webflow sites: native image optimization is solid, but watch out for custom code that bypasses the platform’s defaults. CMS-heavy pages can be slow without aggressive caching.

Framer sites: most performance work is handled automatically. Image optimization, code splitting, edge delivery, and lazy loading are built in. The main optimization lever for Framer sites is keeping third-party scripts under control. For deeper detail, see our Framer SEO guide and our complete Core Web Vitals guide.

How Long Optimization Takes

For a 20-page marketing site with average performance, getting to a 2-second mobile load time takes 1-3 days of focused work. Most of that time goes to image optimization, caching configuration, and the third-party script audit. The rest is incremental.

For a 200-page site with custom code, plan 2-4 weeks. The principles are the same but the surface area is bigger.

What Not to Do

Three common mistakes that waste optimization effort.

Optimizing JavaScript before images. Images are usually the bigger problem. Fix them first.

Trusting lab data without checking field data. Lab tests run in controlled conditions. Real users have different connections, devices, and contexts. Always cross-check.

Forgetting mobile. Most teams test on desktop with a fast connection. The visitors who actually matter are on mobile with a flaky connection. Test the visitor experience that drives revenue.

If you want a partner who builds fast Framer sites by default, our team can help. See our pricing or start a project.

Frequently Asked Questions

How fast should a website load?

The 2026 bar is 2 seconds to interactive on mobile over a 4G connection. Anything over 3 seconds starts losing measurable conversion. Top-performing sites target sub-1.5-second LCP. Use field data from PageSpeed Insights or Chrome User Experience Report to measure real visitor experience, not just lab tests.

Does website speed affect SEO?

Yes. Core Web Vitals are a confirmed Google ranking signal as part of the Page Experience signal. The official position is that they act as a tiebreaker, but the compound effect (better engagement, lower bounce, higher conversion) often moves rankings beyond the direct ranking lift.

What is the single biggest speed optimization?

Image optimization. On most sites, images are 50-80% of page weight. Serving AVIF or WebP, sizing images correctly per viewport, and lazy loading below-the-fold images can cut total page weight by 60-70% without any code changes.

  • Why Website Speed Matters More Than Ever
  • The Speed Optimization Hierarchy
  • Image Optimization
  • Modern Formats
  • Responsive Images
  • Lazy Loading
  • Compression
  • Caching and CDN
  • Render-Blocking Resources
  • Third-Party Scripts
  • Font Loading
  • Server Response Time
  • Measuring Speed
  • Performance Budgets
  • Platform-Specific Notes
  • How Long Optimization Takes
  • What Not to Do
  • Frequently Asked Questions
  • How fast should a website load?
  • Does website speed affect SEO?
  • What is the single biggest speed optimization?
  • Why Website Speed Matters More Than Ever
  • The Speed Optimization Hierarchy
  • Image Optimization
  • Modern Formats
  • Responsive Images
  • Lazy Loading
  • Compression
  • Caching and CDN
  • Render-Blocking Resources
  • Third-Party Scripts
  • Font Loading
  • Server Response Time
  • Measuring Speed
  • Performance Budgets
  • Platform-Specific Notes
  • How Long Optimization Takes
  • What Not to Do
  • Frequently Asked Questions
  • How fast should a website load?
  • Does website speed affect SEO?
  • What is the single biggest speed optimization?

Related guides

All SEO & Performance →

Google Business Profile: A Complete Guide

Google Business Profile is the free Google tool that controls how your business appears in Google Search, Google Maps, and the local pack. It manages your name, address, phone number, hours, photos, reviews, and posts, and it is the single most important asset for local visibility. A complete, active profile is what gets you found […]

SaaS SEO: A Complete Guide for 2026

SaaS SEO is the practice of growing a software company’s organic search traffic and pipeline by ranking for the problems, comparisons, and integrations your buyers research before they ever request a demo. It blends keyword strategy, fast technical foundations, product-led content, and now answer engine optimization, so your product surfaces in Google and in AI […]

Google Search Console: A Complete Guide

Google Search Console is a free tool from Google that shows how your site performs in search results. It reports the queries that bring visitors, your average ranking position, click-through rates, indexing status, and technical errors. Every site owner should connect it on launch day, because it is the only direct line into how Google […]

llms.txt: A Complete Guide for 2026

An llms.txt file is a plain Markdown file placed at the root of your website that gives large language models a clean, curated map of your most important content. It helps AI systems like ChatGPT, Claude, and Perplexity understand your site quickly, without wading through navigation, scripts, and clutter. Key Takeaways llms.txt is a Markdown […]

Generative Engine Optimization (GEO): A Complete Guide

Generative engine optimization (GEO) is the practice of optimizing your content so generative AI systems like ChatGPT, Gemini, Perplexity, and Google’s AI Overviews surface and cite it inside the answers they generate. It focuses on being included in synthesized responses rather than only ranking as a link. Key Takeaways GEO targets visibility inside AI-generated answers, […]

Answer Engine Optimization (AEO): A Complete Guide

Answer engine optimization (AEO) is the practice of structuring your content so AI-powered answer engines like ChatGPT, Perplexity, and Google’s AI Overviews can extract, trust, and cite it directly. Instead of competing only for ranked links, you compete to be the answer a machine reads back to a user. Key Takeaways AEO optimizes content to […]

Ready to build your Framer website?

Book a free strategy call to discuss your project.

Book a Strategy Call