Implementing Streaming SSR for Core Web Vitals

Streaming SSR: How It Works

Development and maintenance of all types of websites:

Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:

Frequently Asked Questions

Latest works

  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1283
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1237
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    980
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    1029
  • image_website-sbh_0.webp
    Website development for SBH Partners
    1104
  • image_website-_0.webp
    Website development for Red Pear
    552

Streaming SSR: How It Works

Classic SSR blocks: the server waits for all data, renders the full HTML, then sends it. Until the slowest database query completes, the browser receives zero bytes. Users see a white screen for 2–3 seconds, and Core Web Vitals suffer: TTFB spikes, LCP is delayed. Streaming SSR breaks this block: HTML is sent to the browser as parts of the page become ready, via HTTP chunked transfer encoding.

The browser starts parsing and displaying HTML immediately. Slow parts appear later. Users see something on screen within 100–200 ms, even if full render takes a second. Our experience shows that after implementing streaming SSR, TTFB drops by a factor of 5, and LCP improves by 30–50%. We have completed over 50 server-rendering optimization projects, and this technique consistently delivers the best results. We guarantee Core Web Vitals improvement to the green zone.

How Streaming SSR Affects Core Web Vitals

Streaming rendering directly improves three key metrics:

  • TTFB — drops to under 100 ms because the server starts sending response immediately.
  • LCP — decreases by 30–50% by showing main content as it becomes ready.
  • INP — improves because hydration starts earlier, making the page interactive gradually.

In one of our projects (an e‑commerce store with 10,000 products), we reduced TTFB from 2.3 s to 200 ms and LCP from 4.5 s to 1.2 s. Conversion increased by 12%. Payback period was 2–3 months.

Why Streaming Outperforms Classic Rendering

Compare approaches by key parameters. Streaming SSR is 5× better in TTFB compared to classic SSR:

Parameter Classic SSR Streaming SSR
TTFB After full render (0.5–1.5 s) Before render (<100 ms)
FCP After TTFB + parsing Immediately after shell
LCP Depends on slowest data Depends only on needed block
INP Blocked until hydration Earlier hydration – less delay

Streaming SSR provides a 5× advantage in TTFB and significantly improves perceived speed.

Implementation in React 18 + Next.js

React's renderToPipeableStream is the primary API for streaming in React 18. Next.js 14 uses it in the App Router by default. Example:

// app/catalog/page.tsx import { Suspense } from 'react'; async function FeaturedProducts() { const products = await fetch('https://api.example.com/featured', { next: { revalidate: 300 } }).then(r => r.json()); return ( <ul> {products.map((p: Product) => ( <li key={p.id}>{p.name}</li> ))} </ul> ); } async function Categories() { const cats = await db.category.findMany(); return <nav>{cats.map(c => <a key={c.id} href={`/catalog/${c.slug}`}>{c.name}</a>)}</nav>; } export default function CatalogPage() { return ( <div> <h1>Catalog</h1> <Suspense fallback={<CategoriesSkeleton />}> <Categories /> </Suspense> <Suspense fallback={<ProductsGridSkeleton count={6} />}> <FeaturedProducts /> </Suspense> </div> ); } 

To avoid request waterfalls, run queries in parallel and use independent Suspense components for each data block. Put dependent queries inside the corresponding Suspense.

Metrics Before and After Implementation (Typical Project)

Metric Before Streaming SSR After Streaming SSR
TTFB 800–1500 ms <100 ms
LCP 3–5 s 1–2 s
INP 300–500 ms <100 ms
Conversion +10–15%

Implementation Process

  1. Audit — identify slow queries, SSR bottlenecks, profile using React Profiler and Lighthouse.
  2. Design Suspense boundaries — determine which components can render asynchronously and their fallback skeleton UI.
  3. Implementation — rewrite components for async boundaries, parallelize requests, configure streaming.
  4. Testing — verify correct hydration, no hydration mismatch, measure metrics.
  5. Deploy and monitor — deploy, set up RUM, track Core Web Vitals.

Timelines and Cost

Timelines depend on project complexity and number of pages. Rough estimate: audit and design — 1–2 weeks, implementation and testing — another 2 weeks, then monitoring and optimization. Implementation costs typically range from $5,000 to $15,000 depending on complexity. Investment in streaming SSR pays off through conversion uplift and reduced infrastructure costs. Get an expert consultation on improving Core Web Vitals. Contact us for a project evaluation.

What Our Work Includes

  • Audit of current SSR: identify slow queries and bottlenecks.
  • Design Suspense boundaries with optimal fallback UI.
  • Implement skeleton UI for all components.
  • Parallelize requests with Promise.all.
  • Configure Core Web Vitals monitoring.
  • Documentation and team training.
  • Support for 30 days after implementation.
Technical deep dive: out-of-order streaming Out-of-order streaming allows components with faster data to render before slower ones, regardless of their position in the component tree. This is achieved by React's Suspense mechanism and the `renderToPipeableStream` API. Each Suspense boundary can flush independently, so the browser receives the faster content first, even if it appears later in the HTML structure.
Selective hydration explained Selective hydration means that interactive elements become operational as soon as their corresponding JavaScript chunks are loaded and executed, without waiting for the entire page to hydrate. This reduces INP because users can interact with parts of the page earlier.

With over 5 years of experience in SSR optimization and 50+ projects delivered, our team ensures quality results. Contact our engineers to implement Streaming SSR.