Skip to content
Skillpedia
Websites & UI (frontend)75k · #3037

streaming-html

What it does

This skill reviews server rendering code to see whether HTML is streamed in chunks or held back until everything is ready, and suggests streaming where it helps. It is for developers working on server-rendered sites, such as Next.js or Node.js apps.

When to use it

  • ✓When you ask the agent to check whether your server-rendered pages stream their HTML.
  • ✓When the first byte of a page takes a long time because one slow data request holds up everything.
  • ✓When you use Next.js App Router or Node.js handlers and want to confirm streaming is set up correctly.

Skill link

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/streaming-html/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/streaming-html/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“My server-rendered page takes a long time before anything shows up, because one slow query holds everything back. Can you set up streaming?”

5 new skills a week. 1 minute to read.

How it works

The agent checks whether the rendering code waits for all data before sending HTML. It then adds Suspense boundaries around slow data, or uses a streaming API, so the top of the page is sent right away.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Stream HTML to the browser before the full response is ready

Traditional SSR waits for all data fetches to complete before sending a single byte of HTML, which means the browser cannot parse, discover subresources, or render anything until the slowest data query finishes. Streaming decouples the delivery of above-fold content from slow database queries and third-party API calls, dramatically improving perceived performance and LCP.

Quick Reference

  • Streaming sends HTML in chunks as it is generated instead of waiting for the full response
  • React renderToPipeableStream and Next.js App Router stream by default when you use Suspense
  • Place Suspense boundaries around slow data dependencies to flush above-fold HTML immediately
  • Monitor TTFB in Lighthouse — values above 600ms are a sign that streaming is not being used

Check

Examine this server-side rendering implementation to determine whether HTML is streamed in chunks or buffered until fully generated before sending to the client.

Fix

Refactor the SSR implementation to use renderToPipeableStream with Suspense boundaries around slow data fetches, or use ReadableStream in a Node.js handler, so that above-fold HTML is flushed to the client immediately.

Explain

Explain how streaming HTML improves TTFB and FCP by decoupling the delivery of fast content from slow server-side data dependencies.

Code Review

Review server entry points and page components for renderToString calls, missing Suspense boundaries around data-fetching components, and use of await on slow queries before returning a response.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/performance/streaming-html

FAQ

What does streaming change for visitors?

The skill says the browser can parse, find resources, and show content before the slowest data query finishes.

Is streaming automatic in Next.js?

The skill says the App Router streams by default when Suspense is used.

What number should I watch?

The skill suggests watching time to first byte in Lighthouse, and says values above 600 milliseconds can point to missing streaming.

Details

Original description by the author

Use when reviewing server-side rendering setup, Next.js App Router pages, or Node.js HTTP handlers to verify that HTML is streamed incrementally rather than buffered until completion.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#3037
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills