Skip to main content

What Happens When You Type a URL

The full lifecycle — from keypress to painted pixels.


The Stages That Matter for Performance

StageWhat it isHow to speed it up
DNS lookupTranslating domain → IPUse dns-prefetch hints, CDN with anycast
TCP + TLSConnection setupHTTP/2 multiplexing, keep-alive, QUIC/HTTP/3
Server responseTime to first byte (TTFB)Fast backend, CDN edge caching
HTML parse + sub-resourcesCritical render pathDefer non-critical JS, inline critical CSS
Layout + paintRender engine workAvoid layout thrashing, use will-change sparingly

The metric I watch most: TTFB (Time To First Byte) tells me if the problem is DNS/network vs server-side.


Reference