Skip to content
Blog

Web Development

How We Build Websites That Score 95+ on Lighthouse

Speed drives revenue and rankings. The exact tech stack and techniques we use to build websites that score 95+ on Google Lighthouse every time.

Giovani Rodríguez6 min read

Performance Is a Business Decision

A one-second delay in page load time reduces conversions by 7% (Akamai). Google uses Core Web Vitals as a ranking signal. And 53% of mobile visitors abandon a site that takes more than three seconds to load (Google).

Speed decides whether your website works as a business tool. A beautiful site that loads in six seconds is a brochure nobody reads, while a site that loads in under two seconds becomes a revenue engine.

We treat performance as a first-class requirement from the start of each project instead of optimizing after launch.

The Tech Stack That Makes It Possible

Astro: Ship Less JavaScript

Most web frameworks send a mountain of JavaScript to the browser, even for pages that are mostly static content. A typical React-based marketing site might ship 200-400KB of JavaScript to render text and images that don’t change.

Astro flips this model. It renders everything to static HTML at build time and sends zero JavaScript to the browser by default. Interactive components load their JavaScript only when needed, a pattern called partial hydration or “islands architecture.”

As a result, a typical page on a site we build sends under 50KB of JavaScript, often much less. Users feel an order-of-magnitude reduction like that the moment the page opens.

SvelteKit: When You Need Full Interactivity

For applications that need rich interactivity (dashboards, client portals, tools) we use SvelteKit. Svelte compiles components to vanilla JavaScript at build time, which removes the runtime overhead that frameworks like React and Vue carry. A Svelte component is typically 40-60% smaller than its React equivalent doing the same thing.

We pick the tool to fit the job. Marketing sites and content-heavy pages get Astro, and interactive applications get SvelteKit. Some projects use both.

The Techniques That Matter

Font Loading Done Right

Web fonts are one of the most common performance killers. A single Google Font can add 200-500ms to your page load and cause visible layout shift as the font swaps in.

Our font setup:

  • Subset fonts to include only the characters the site uses. A full font file might be 250KB, while a subset for English with common punctuation is often under 30KB.
  • Self-host everything. We make no external requests to Google Fonts or Adobe Fonts. The font files live on the same server as the site, which removes DNS lookups and connection overhead.
  • Use font-display: swap with size-adjusted fallbacks. The page renders at once with a system font tuned to match the web font’s metrics, so when the web font loads there’s zero layout shift.
  • Preload the primary font. A single <link rel="preload"> tag tells the browser to start downloading the font before it parses the CSS that references it.

Image Optimization Beyond Compression

Images are typically the heaviest assets on a page. Along with compressing them, we change how the site delivers them.

  • Modern formats first. We serve each image in WebP or AVIF with a JPEG fallback. AVIF is typically 50% smaller than JPEG at the same visual quality.
  • Responsive srcset attributes. The browser downloads an image sized for the device instead of a 2400px desktop image on a 375px phone screen.
  • Lazy loading below the fold. Images outside the initial viewport don’t download until the user scrolls near them. The hero image loads eagerly, and the rest wait.
  • Explicit dimensions on every image. These prevent Cumulative Layout Shift (CLS), the annoying jump you see when content moves as images load.

Minimal JavaScript, Maximum Impact

The browser has to parse, compile, and execute each kilobyte of JavaScript. On a mid-range Android phone (which is what most of the world uses), parsing JavaScript is 3-4x slower than on a MacBook Pro.

Our approach:

  • No JavaScript by default. Each component starts as server-rendered HTML and CSS. We add JavaScript only for interactions that require it.
  • No heavy frameworks for simple interactions. A mobile menu toggle doesn’t need React. A few lines of vanilla JavaScript or a CSS-only solution handles it.
  • Tree-shaking and code splitting. When we do use JavaScript libraries, bundlers strip out unused code and split the remainder into chunks that load only on the pages that need them.
  • Third-party script audit. Analytics, chat widgets, and tracking pixels are some of the worst performance offenders. We audit each third-party script, defer what we can, and remove what doesn’t justify its weight.

Core Web Vitals in Plain Terms

Google measures three specific things, and they affect both SEO and user experience.

Largest Contentful Paint (LCP)

What it measures: How long the largest visible element (usually a hero image or heading) takes to render.

Our target: Under 2.5 seconds. We typically hit under 1.5 seconds.

How we achieve it: Server-side rendering, preloaded critical assets, optimized images, and fast hosting. The largest element should arrive in the initial HTML response instead of loading through JavaScript afterward.

Interaction to Next Paint (INP)

What it measures: How fast the page responds when a user clicks, taps, or types.

Our target: Under 200ms. On most of our sites, it’s under 100ms.

How we achieve it: With minimal JavaScript, script execution doesn’t block the browser’s main thread. Where we do have interactive elements, we keep event handlers lean so they don’t trigger expensive re-renders.

Cumulative Layout Shift (CLS)

What it measures: How much the page layout moves around as content loads.

Our target: Under 0.1. We aim for zero.

How we achieve it: Explicit dimensions on all images and embeds, size-adjusted font fallbacks, and no content injection above the fold after initial render.

Real Results

We built the site you’re reading with Astro. Run a Lighthouse audit on it; we’ll wait.

Each site we ship goes through a performance audit before launch. We test on real devices, on throttled connections, and on the cheapest Android phones we can find, because a large share of your audience experiences your site that way.

In practice:

  • Pages load in under 2 seconds on a standard broadband connection and under 3 seconds on 4G mobile.
  • Google rewards the speed with better crawl efficiency and ranking signals. One client saw a 15% increase in organic traffic within three months of launching their rebuilt, performance-optimized site, with no other SEO changes.
  • Bounce rates drop. When pages load fast, people stay. We’ve seen bounce rates decrease by 20-35% on site rebuilds where performance was the primary focus.

Does Performance Mean Boring Design?

No. Performance constraints push you toward better design decisions. Without heavy animation libraries and auto-playing video backgrounds, you focus on typography, whitespace, color, and layout, the fundamentals that make a site beautiful instead of busy.

Some of the most visually striking sites on the web are also the fastest, and the two goals support each other.

Bottom Line

A fast website contributes directly to your bottom line through better search rankings, lower bounce rates, and higher conversions. The tools and techniques are well-established: Astro for static content, modern image formats, disciplined JavaScript budgets, and attention to Core Web Vitals.

If your current site is sluggish, bloated with JavaScript, or failing its Lighthouse audits, it’s costing you visitors and revenue each day. Let’s talk about rebuilding it the right way.

  • #Performance
  • #Core Web Vitals
  • #Astro
  • #SEO
  • #Lighthouse

Share

Get in touch

Let’s buildsomething great.

Tell us what you’re working on. We take on AI automation, custom SaaS platforms and technical strategy work.