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 →

Resource Hints: A Complete Guide for 2026

Resource hints are small instructions you give the browser to prepare for resources it will need soon, so they load faster when the moment comes. They include preconnect, dns-prefetch, preload, and prefetch. Used well, resource hints shave time off page loads by starting key work early, before the browser would otherwise discover it needs to. […]

HTTP/2 and HTTP/3: A Complete Guide for Websites

HTTP/2 and HTTP/3 are modern versions of the protocol browsers use to fetch websites. HTTP/2 lets a browser load many files over a single connection at once, while HTTP/3 builds on that and runs over a faster, more resilient transport that handles unstable networks better. Both make pages load quicker than the older HTTP/1.1, especially […]

Gzip and Brotli Compression: A Complete Guide

Gzip and Brotli compression are methods of shrinking text-based files like HTML, CSS, and JavaScript before they travel from a server to a browser. Smaller files mean faster downloads and quicker page loads. Brotli is the newer, more efficient algorithm, while Gzip is the older universal standard. Together they are one of the simplest, highest-impact […]

Service Workers: A Complete Guide for 2026

A service worker is a script that runs in the background of a browser, separate from a web page, acting as a programmable proxy between the site and the network. It lets a website cache assets, serve content offline, sync data, and receive push notifications. For most modern sites, service workers are the engine behind […]

HTTP Caching for Websites: A Complete Guide

HTTP caching is a set of rules that tell browsers and intermediary servers to store copies of your website’s files so they can be reused on later visits. Done well, it removes redundant downloads, slashes load times for returning visitors, and reduces server strain. The result is a faster, cheaper, more reliable site. Key takeaways […]

Image Compression for Websites: A Complete Guide

Image compression reduces the file size of your images so they download faster without ruining how they look. Since images are usually the heaviest part of a web page, compressing them well is one of the most effective ways to speed up your site, improve search rankings, and keep visitors from leaving before the page […]

Ready to build your Framer website?

Book a free strategy call to discuss your project.

Book a Strategy Call