Performance Engineering

The Physics of Mobile Network Latency & Web Performance Budgeting

Learn why high bandwidth cannot rescue high latency, how TCP Slow Start caps initial page delivery, and how to automate performance budgets in modern CI pipelines.

1. Bandwidth vs Latency: The Unforgiving Physics of RTT

A common misconception among web developers is that fast connection bandwidth (e.g. 50 Mbps 4G or 100 Mbps fiber) guarantees instant page loading. However, web performance on mobile devices is strictly constrained not by throughput, but by Round-Trip Time (RTT)—the physical duration required for a packet of light or radio waves to travel from the phone antenna, through cellular towers and internet backbones, to the server and back.

Slow 3G~400ms RTT
Fast 3G~150ms RTT
4G LTE~50ms RTT
5G / Cable~15ms RTT

Before a browser can download a single byte of your CSS or JavaScript, it must complete:

  • DNS Resolution: 1 RTT
  • TCP 3-Way Handshake: 1 RTT
  • TLS 1.3 Cryptographic Handshake: 1 RTT
  • HTTP Request & Server TTFB: 1 RTT + server computation

On a 150ms 3G connection, over 600ms of elapsed time expires before the first byte arrives. If your critical assets span multiple unpipelined round-trips, achieving Google's recommended ≤ 2.5s Largest Contentful Paint (LCP) becomes physically impossible.

2. TCP Slow Start & The Critical 14KB Initial Window

Transmission Control Protocol (TCP) does not transmit data at full wire speed immediately. To prevent network buffer congestion and packet drops, TCP employs an algorithm known as TCP Slow Start.

New TCP connections initiate with an Initial Congestion Window (initcwnd) of 10 TCP segments (approximately 14,600 bytes or 14.2 KB). The server sends these 14KB, then pauses and awaits an ACK packet acknowledgment from the client before doubling the window size.

The 14KB Rule for Instant First Paint:

• If your critical HTML + inlined critical CSS fits within 14KB (compressed):

→ Entire page renders in Round Trip #1 (Zero subsequent network stalls)

• If critical assets exceed 14KB:

→ Browser must wait an additional full RTT (+150ms to +400ms) before rendering starts

3. Automating Performance Budgets with Lighthouse CI

A performance budget is worthless if it lives only in documentation. To safeguard web speed, engineering teams integrate budget assertions directly into GitHub Actions and CI pipelines using Lighthouse CI (budget.json).

/* budget.json enforced in pull requests */

[

{

"resourceSizes": [

{ "resourceType": "script", "budget": 180 },

{ "resourceType": "stylesheet", "budget": 45 },

{ "resourceType": "font", "budget": 75 },

{ "resourceType": "image", "budget": 250 }

]

}

]

Whenever a pull request introduces an unoptimized dependency or bloated image asset that breaches these thresholds, the automated CI check fails immediately—blocking regressions before they reach production users.