Lighthouse Performance Budget Calculator
Set target Lighthouse scores and get estimated resource size budgets, timing thresholds, and actionable recommendations — color-coded by severity.
Target Lighthouse Scores
Resource Size Budgets
Timing Budgets
Recommendations
lighthouserc.json (for Lighthouse CI)
Frequently Asked Questions
What is a Lighthouse performance budget and why set one?▼
A performance budget is a set of limits for metrics that affect page load time and user experience. It acts as a guardrail: when a build exceeds the budget, CI fails and you must optimize before shipping. Budgets prevent 'performance creep' where small additions gradually degrade performance. You can set budgets for JavaScript size, CSS size, image size, total page weight, and timing metrics like FCP and LCP. Lighthouse CLI and webpack-budget-plugin can enforce these automatically.
What Lighthouse score should I target?▼
Green (90-100): Excellent performance. Achievable for most sites with good practices. Aim for 90+ on Performance and SEO. Yellow (50-89): Needs improvement. Users on slow devices or connections will notice. Red (0-49): Poor. Significant impact on conversion and user retention. Google uses page experience signals (which include Core Web Vitals) as ranking factors. A score of 90+ Performance typically means passing all Core Web Vitals (LCP < 2.5s, FID < 100ms, CLS < 0.1).
What are the Core Web Vitals and their thresholds?▼
LCP (Largest Contentful Paint): Measures loading performance. Good: < 2.5s, Needs improvement: 2.5-4s, Poor: > 4s. FID (First Input Delay, being replaced by INP): Measures interactivity. Good: < 100ms, Poor: > 300ms. INP (Interaction to Next Paint): New standard. Good: < 200ms. CLS (Cumulative Layout Shift): Measures visual stability. Good: < 0.1, Poor: > 0.25. FCP (First Contentful Paint): Good: < 1.8s. TTI (Time to Interactive): Good: < 3.8s.
How do I enforce performance budgets in my build pipeline?▼
Several approaches: 1) Lighthouse CI — run lighthouse in CI and fail on budget violations. Install: npm i -g @lhci/cli. Configure: lighthouserc.json with budgets array. 2) webpack performance hints — set performance.maxAssetSize in webpack config. 3) bundlesize npm package — define size limits in package.json. 4) Vite rollup options — set chunkSizeWarningLimit. 5) Next.js built-in — Next reports bundle size changes in the build output. The most comprehensive approach is Lighthouse CI running against a staging deployment.
Why is JavaScript the most impactful resource to optimize?▼
JavaScript is the most expensive resource per byte: it must be downloaded, parsed, compiled, and executed — each step blocks the main thread. A 100KB gzip JS file might take 1-2 seconds to process on a mid-range mobile device. Images and CSS are faster to process. Key JS optimizations: code splitting (load only what's needed), tree-shaking (remove dead code), defer non-critical scripts, use web workers for heavy computation, and replace large libraries with smaller alternatives.
Related Products
on GumroadDeveloper Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →Developer Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →You Might Also Need
Web Performance Checklist
Interactive web performance checklist covering images, fonts, JavaScript, CSS, caching, and server. Check off items to track your score out of 100 and export as Markdown.
Open free tool →
Lighthouse Score Simulator
Estimate Lighthouse performance scores based on JS bundle size, CSS, images, TTFB, and render-blocking resources. Get LCP, FID, CLS, FCP estimates.
Open free tool →
PWA Manifest Generator
Generate a valid Web App Manifest (manifest.json) for your Progressive Web App. Configure name, icons, display mode, theme colors, and orientation. Download ready-to-use JSON.
Open free tool →
More Free Tools
Related Articles
Performance Optimization 2026: Complete Guide to Frontend, Backend, and Infrastructure
Comprehensive performance optimization guide for 2026 covering Core Web Vitals, JavaScript bundle optimization, server-side rendering, caching strategies, database query optimization, CDN configuration, and real-world benchmarks.
Web Performance and Core Web Vitals 2026: Complete Optimization Guide
Complete guide to Core Web Vitals optimization in 2026. Covers LCP, INP, CLS, TTFB optimization with real code examples. Includes Next.js, React, Vite, Cloudflare Workers, and backend optimization strategies for achieving 90+ Lighthouse scores.
Web Performance 2026: INP, Core Web Vitals & Lighthouse CI
Master web performance in 2026: INP replacing FID, LCP and CLS optimization, Lighthouse CI in GitHub Actions, RUM with web-vitals.js, and setting performance budgets to keep your site fast.
Web Performance Optimization: Improve Your Core Web Vitals in 15 Steps
15 actionable web performance optimization techniques to improve LCP, CLS, and INP (Core Web Vitals). Real code examples, measurement tools, and before/after results.
AWS Lambda Cold Start Optimization: 10 Proven Techniques 2026
Eliminate or minimize AWS Lambda cold starts with 10 proven techniques: provisioned concurrency, SnapStart, package minimization, ARM Graviton2, lazy loading, and more with benchmark data.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →