What is LCP? Complete Guide to Largest Contentful Paint
Master Largest Contentful Paint (LCP) - Google's key Core Web Vital for measuring loading performance. Learn what LCP is, why it matters for SEO, and how to optimize it.
Comprehensive guide to Time to First Byte (TTFB). Learn what TTFB measures, good TTFB benchmarks, how to diagnose slow server response, and proven optimization techniques.
Time to First Byte (TTFB) measures how long it takes from when a user's browser requests a page to when it receives the first byte of the response. It includes DNS lookup, TCP connection, TLS negotiation, and server processing time.
TTFB is a foundational metric because everything else depends on it. Your LCP can't possibly be 2 seconds if your TTFB is already 3 seconds. Fast TTFB is a prerequisite for good Core Web Vitals.
While not a Core Web Vital itself, TTFB is increasingly important for Google rankings as part of overall page experience. Google recommends TTFB under 800ms, though under 200ms is ideal.
TTFB sets the baseline for your entire page load. If your server takes 2 seconds to respond, your LCP mathematically cannot be under 2 seconds. Fast TTFB is the foundation for passing Core Web Vitals.
High TTFB often indicates backend problems: slow database queries, unoptimized code, insufficient server resources, or missing caching. It's a canary in the coal mine for infrastructure issues.
For SEO, slow TTFB means Googlebot spends more time crawling your site, potentially leading to fewer pages being indexed. Google's crawl budget is limited, and slow servers waste it.
DNS resolution can add 20-200ms depending on your DNS provider and whether results are cached. Using fast DNS providers like Cloudflare (1.1.1.1) or Google (8.8.8.8) helps.
TCP and TLS handshakes require round trips that scale with geographic distance. A user in Australia connecting to a server in Virginia faces 200ms+ just in network latency.
Server processing time depends on your backend efficiency: database queries, API calls, server-side rendering complexity, and available compute resources.
Use MakeWebsite.fast's TTFB checker to test server response time from edge locations. This shows how TTFB varies by geography - crucial if you have a global audience.
Chrome DevTools Network panel shows TTFB for every request. Look for 'Waiting (TTFB)' in the request timing breakdown. High values indicate server-side issues.
For comprehensive analysis, combine lab tools with real user monitoring (RUM). Your own testing from a fast connection won't reveal how users on slow networks experience your site.
Use a Content Delivery Network (CDN) to serve content from edge locations close to users. This eliminates the geographic penalty for distant users and can cut TTFB by 50-80%.
Implement caching at every layer: browser caching, CDN caching, application caching, and database query caching. The fastest response is one that doesn't need to hit your origin server at all.
Optimize your backend: index database queries, use connection pooling, implement efficient algorithms, and ensure adequate server resources. Sometimes the simplest fix is upgrading to a faster hosting plan.
Systematically work through this checklist to reduce TTFB. Start with the highest-impact changes (CDN, caching) before diving into backend optimization.
Monitor TTFB continuously with tools like MakeWebsite.fast. TTFB can regress quickly with new deployments, traffic spikes, or infrastructure changes.
Google recommends TTFB under 800ms, but ideally aim for under 200ms. Top-performing sites typically achieve 50-100ms TTFB by using CDNs and aggressive caching. Remember that TTFB varies by location - test from where your users are.
No, TTFB is not officially a Core Web Vital, but it directly impacts LCP which is. Think of TTFB as a prerequisite - you can't have good Core Web Vitals with poor TTFB. Google does track and report TTFB in its tools.
TTFB includes network latency, which increases with geographic distance. A user in New York connecting to a server in New York might see 20ms TTFB, while a user in Tokyo connecting to the same server might see 200ms due to the physical distance data must travel.
Weekly tips to make your website faster
Join 5,000+ developers getting actionable performance optimization tips, Core Web Vitals updates, and speed testing insights.
No spam. Unsubscribe anytime.
Master Largest Contentful Paint (LCP) - Google's key Core Web Vital for measuring loading performance. Learn what LCP is, why it matters for SEO, and how to optimize it.
Everything you need to know about website speed testing. Learn how to test your site speed, interpret results, and fix common performance issues.