Scoring 100 on Lighthouse (Performance focused)

August 2, 2025 (2mo ago)

“Why aim for 100? Because Google loves fast websites more than devs love dark mode.”

If you also stared at a Lighthouse score of 28 and thought “what kind of shit I had written”, this post is for you.


🤔 What Even Is Lighthouse?

Lighthouse is Google’s brutally honest friend. It audits your site for:

Drake Meme – JS ≠ fast vs. no JS = fast


⚙️ How to Run Lighthouse


⚡ Performance: How to Reach 100 Without Losing Mind

1. Code Splitting

Dynamic import

// import specific parts
 
// bad practice- import radixui from "radix-ui"
 
// good practice
import Switch from "@radixui/switch"

Treeshaking

 ANALYZE=true npm run build

Big modules Bigger colored boxes increase your bundle size and oftenly impact performance also. To optimize dynamically import them.


2. Optimize Apis

selecting only required fields to query from db

caching


2. 🖼️ Optimize Your Largest Contentful Paint (LCP)

LCP = how fast your main content loads (target: < 2.5s)

lcp

Slow LCP LCP is like your first impression on a date — don’t show up blurry or late.


3. ⏱️ Use defer and Lazy Load Smartly

<script defer src="/scripts/main.js"></script>
<img loading="lazy" src="/images/offscreen.jpg" />

“Don’t serve dessert before the main course.” 🍰


4. 🥇 Preload Fonts & Key Assets

<link rel="preload" href="/fonts/inter.woff2" as="font" type="font/woff2" crossorigin>

🔍 SEO: Make Googlebot Fall in Love With You

1. 🎯 Proper <title> & <meta description>

Each page should have proper title and meta description.

metadata

Confused math lady meme “Googlebot trying to index your page with no title tag…”


2. 🧩 Use Semantic HTML

Use proper tags like <header>, <nav>, <main>, <article>, <footer>.

Analogy: Semantic tags are like labeled boxes during moving — they help Googlebot know what’s inside.


3. 🧭 Descriptive Link Text

Bad:

<a href="/more">Click here</a>

Good:

<a href="/about-us">Learn more about our team</a>

“Click here” links are the SEO version of mystery boxes.


4. 📱 Mobile Friendliness

Make sure your layout adapts well to all screen sizes.


🧰 Bonus Tools to Save Your Sanity


🏁 Final Thoughts

Getting a 100 Lighthouse score isn’t just for bragging rights — it helps with:

“A slow site is like a waiter who brings water after dessert. Nobody comes back.”