Course contentsShow
← Web Development
Lesson 1737 of 2,98232. Server-Side Rendering ConceptsFree lesson

Speed Index

Learn how Speed Index measures visual completeness over time and SSR's advantage here.

Speed Index

What you'll learn: You'll learn what Speed Index measures and why Server-Side Rendering gives you an advantage for this metric.

What is Speed Index?

Speed Index measures how quickly content becomes visually visible during page load. Unlike metrics that mark a single moment (like First Contentful Paint), Speed Index captures the entire progression of visual completeness over time. It calculates the average time at which visible parts of the page are displayed.

Think of it like watching a photograph develop: some images appear instantly, while others fade in gradually from top to bottom. Speed Index rewards pages that "develop" faster, showing meaningful content sooner to users.

How Speed Index is Calculated

Speed Index uses a scoring system based on video frames captured during page load. It measures what percentage of the page is visually complete at each moment, then calculates an aggregate score. Lower scores are better—they indicate content appeared more quickly.

A page that shows 80% of its content at 1 second will score much better than one that shows 20% at 1 second and the rest at 3 seconds, even if both finish at the same time.

SSR's Speed Index Advantage

Server-Side Rendering excels at Speed Index because:

  1. Immediate visual content: The HTML arrives already containing meaningful content, not blank loading states
  2. Progressive rendering: Browsers can paint content as soon as HTML chunks arrive, before JavaScript loads or executes
  3. No white screen phase: Unlike Client-Side Rendering, where users see nothing until JavaScript builds the page, SSR shows content immediately

With CSR, Speed Index suffers because the viewport stays mostly empty until JavaScript downloads, parses, executes, fetches data, and finally renders. With SSR, visual progress starts immediately with the first HTML bytes.

Key Takeaway: Speed Index measures how quickly the page visually fills in over time, and SSR dramatically improves this metric by delivering rendered content in the initial HTML response rather than requiring JavaScript execution first.