← Back to journal
PerformanceAdvanced

Core Web Vitals Optimization: How to hit 100/100 Lighthouse score

How to eliminate layout shifts, optimize image loading pipelines, reduce javascript bundle sizes, and leverage edge rendering.

Leo Nguyen
Leo Nguyen
Software Architect
7/6/202615 min read

Core Web Vitals Optimization: How to hit 100/100 Lighthouse score

IMAGE NOTE Prompt: "Monitor showing Google Lighthouse 100/100 score in performance, accessibility and SEO, minimal workstation, professional setup."

Introduction

Speed is a feature. If your website takes longer than 3 seconds to load, half your users will bounce. Here is our engineering guide to hitting absolute performance targets.

The Problem: The Asset Bloat

Modern websites load megabytes of unoptimized images, heavy web fonts, and tracking scripts, rendering the viewport sluggish on mobile networks.

IMAGE NOTE Prompt: "Chart analyzing critical rendering path and resources blocking the main thread during initial page render."

The Solution: Stable Skeletons & Resource Prioritization

  1. Aspect Ratios: Set explicit dimensions to prevent Layout Shifts.
  2. Next.js Image: Utilize next/image to automatically deliver WebP files.
import Image from 'next/image';

export function PremiumHeroImage() {
  return (
    <div className="relative aspect-video w-full overflow-hidden rounded-3xl">
      <Image
        src="/images/blog/featured.png"
        alt="Workspace"
        fill
        priority
        sizes="(max-width: 768px) 100vw, 50vw"
        className="object-cover"
      />
    </div>
  );
}

Real-world Example: Giang Café Speed Overhaul

By migrating Giang Café to static page pre-rendering, we reduced time-to-first-byte (TTFB) to under 80ms globally.

IMAGE NOTE Prompt: "Developer using Chrome DevTools performance flame charts to diagnose rendering thread blocking scripts."

Critical Performance Checklist

  • Cumulative Layout Shift (CLS) at 0
  • Largest Contentful Paint (LCP) under 1.5 seconds
  • No custom scripts blocking initial document parsing
  • Fonts preloaded and styled with fallback displays

Summary

Performance is not an afterthought; it is built into the architecture from day one.

FAQ

What is CLS?

Cumulative Layout Shift measures the visual stability of a page. A score of 0 means the layout remains perfectly stable as assets load.

CTA

Want to audit your website performance? Let our engineers diagnose it for free.

#Performance#Lighthouse#Core Web Vitals#Next.js

Need a team that builds like this?

Documentation-first · Motion-first · Performance-first. Let's build something remarkable.