Performance

Give Yourself a TTFB Budget, Not a Lighthouse Score

A score tells you how the page felt on one run from one place. A budget tells you whether the next commit broke something.

1 min readPublished July 25, 2026
Share on X

Lighthouse scores are useful for catching obvious regressions, but teams treat a 100/100 Lighthouse audit like proof of production excellence. It is not.

A Lighthouse run executes in a sterile, local Chrome environment against an unthrottled loopback connection. It tells you almost nothing about how your real users experience the site in Mumbai, Berlin, or Chicago on real mobile networks.

TTFB is the ceiling for everything else

Time to First Byte is load-bearing because nothing else can start until the first byte arrives. The browser cannot parse HTML, discover CSS, initiate font preloads, or start script downloads until the server answers.

Budget: TTFB < 150ms globally

If TTFB = 80ms:  First Contentful Paint can hit 400ms.
If TTFB = 900ms: Even an empty page cannot paint under 900ms.

Set a hard budget in CI

Do not wait for quarterly audits. Enforce a Time to First Byte budget on every build:

  • Static prerendered pages: maximum 50ms TTFB via edge caching.
  • Dynamic API routes: maximum 200ms TTFB at the 95th percentile.
  • Fail PR checks if a commit introduces synchronous database calls or unbounded loops before headers flush.
  • Performance
  • Caching
  • Backend
KI

Kadirul IslamVerified author

Founder, A.K Solution

Follow on X

Founder of A.K Solution. Full-stack engineer building AI agent tools like KiCode, JSON form engines like ki-forms, and high-scale SEO systems. Obsessed with shipping fast, zero-bloat software that lasts.

More from Kadirul Islam

A Slow App Is Often Just a Database Waking Up

Free tiers suspend on idle. The first request after a pause pays a cold start, and it looks exactly like a slow product.

2 min readPerformance

The Index You Meant to Create

I wrote the migration, the model was correct, and the production database never saw it. Full-table scans for weeks.

1 min readDatabases