{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-streaming-html-d1a43b9463f7","title":"Verify HTML Streaming in Server-Side Rendering","summary":"Verify that HTML is streamed incrementally from server-side rendering setups to improve Time to First Byte (TTFB) and Largest Contentful Paint (LCP). This includes reviewing Next.js App Router pages and Node.js HTTP handlers.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-streaming-html-d1a43b9463f7","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-streaming-html-d1a43b9463f7","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-streaming-html-d1a43b9463f7.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-streaming-html-d1a43b9463f7\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure the server environment supports streaming, such as using React's renderToPipeableStream or Node.js ReadableStream. Place Suspense boundaries around slow data dependencies to enable early HTML delivery.","instructions":"---\nname: streaming-html\ndescription: \"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.\"\nmetadata:\n  category: performance\n  priority: medium\n  difficulty: advanced\n  estimatedTime: \"45\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/performance\/streaming-html\n---\n\n# Stream HTML to the browser before the full response is ready\n\nTraditional 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.\n\n## Quick Reference\n\n- Streaming sends HTML in chunks as it is generated instead of waiting for the full response\n- React renderToPipeableStream and Next.js App Router stream by default when you use Suspense\n- Place Suspense boundaries around slow data dependencies to flush above-fold HTML immediately\n- Monitor TTFB in Lighthouse \u2014 values above 600ms are a sign that streaming is not being used\n\n## Check\n\nExamine this server-side rendering implementation to determine whether HTML is streamed in chunks or buffered until fully generated before sending to the client.\n\n## Fix\n\nRefactor 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.\n\n## Explain\n\nExplain how streaming HTML improves TTFB and FCP by decoupling the delivery of fast content from slow server-side data dependencies.\n\n## Code Review\n\nReview 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.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/performance\/streaming-html\n","use_cases":["Reviewing Next.js App Router pages for HTML streaming","Auditing Node.js HTTP handlers for incremental HTML delivery","Checking server-side rendering setups for performance optimization"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/streaming-html\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T05:46:50.000000Z","updated_at":"2026-11-24T07:12:32.000000Z","seo_title":"Verify HTML Streaming for Better Performance","seo_description":"Check if HTML is streamed incrementally to improve TTFB and LCP. Learn how to verify and fix streaming in SSR.","seo_keywords":["verify html streaming","improve ttfb","optimize lcp","ssr performance","next.js streaming","node.js http streaming"]}}