streaming-html
यह क्या करती है
यह स्किल सर्वर रेंडरिंग कोड देखती है कि HTML टुकड़ों में स्ट्रीम होता है या सब कुछ तैयार होने तक रोका जाता है, और जहाँ मदद मिले वहाँ स्ट्रीमिंग सुझाती है। यह Next.js या Node.js ऐप जैसी सर्वर-रेंडर साइटों पर काम करने वाले डेवलपर्स के लिए है।
कब इस्तेमाल करें
- ✓जब आप एजेंट से जाँचवाएँ कि आपके सर्वर-रेंडर पेज HTML स्ट्रीम करते हैं या नहीं।
- ✓जब एक धीमा डेटा अनुरोध सब कुछ रोके रखने से पेज का पहला बाइट लेने में बहुत समय लगे।
- ✓जब आप Next.js App Router या Node.js हैंडलर इस्तेमाल करें और पक्का करना चाहें कि स्ट्रीमिंग सही सेट है।
Skill का लिंक
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/streaming-html/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरा सर्वर-रेंडर पेज कुछ दिखाने से पहले बहुत समय लेता है, क्योंकि एक धीमी क्वेरी सब कुछ रोक देती है। क्या आप स्ट्रीमिंग सेट कर सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट जाँचता है कि रेंडरिंग कोड HTML भेजने से पहले सारा डेटा तो नहीं रोकता। फिर वह धीमे डेटा के चारों ओर Suspense बाउंड्री जोड़ता है, या स्ट्रीमिंग API इस्तेमाल करता है, ताकि पेज का ऊपरी हिस्सा तुरंत भेजा जाए।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल
स्ट्रीमिंग विज़िटरों के लिए क्या बदलती है?
स्किल कहती है कि सबसे धीमी डेटा क्वेरी पूरी होने से पहले ब्राउज़र पार्स कर सकता है, संसाधन खोज सकता है और कंटेंट दिखा सकता है।
क्या Next.js में स्ट्रीमिंग अपने-आप होती है?
स्किल कहती है कि Suspense इस्तेमाल होने पर App Router डिफ़ॉल्ट रूप से स्ट्रीम करता है।
किस संख्या पर नज़र रखूँ?
स्किल Lighthouse में time to first byte देखने का सुझाव देती है, और कहती है कि 600 मिलीसेकंड से ऊपर के मान स्ट्रीमिंग की कमी की ओर इशारा कर सकते हैं।
जानकारी
लेखक का मूल विवरण
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.
लोकप्रियता
- GitHub स्टार
- 75k
- रैंकिंग में स्थान
- #3037
- लाइसेंस
- MIT
- अपडेट की गई
- 31/10/2026
कमेंट
- …
इस repository की और skills
frontendchecklist
75kकमांड-लाइन टूल से फ़्रंटएंड कोड और लाइव पेजों को एक्सेसिबिलिटी, स्पीड, SEO और सिक्योरिटी के 380 से ज़्यादा नियमों से जाँचती है।
frontend-checklist-global
75kफ़्रंटएंड प्रोजेक्ट को Front-End Checklist के सभी 386 नियमों से ऑडिट करती है, और हर मिली समस्या का ठोस समाधान देती है।
404-page
75kजाँचती है कि आपका गुम पेज उपयोगी लिंक देता है और सही 404 स्टेटस लौटाता है, ताकि भटके हुए विज़िटर रास्ता ढूँढ सकें।
about-page
75kजाँचती है कि आपकी साइट पर एक साफ़ About पेज है जो बताता है कि उसे कौन चलाता है, ताकि विज़िटर और सर्च इंजन का भरोसा बढ़े।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।