पाठ 24 / 25

सामान्य प्रदर्शन नुकसान

सामान्य गलतियों से सीखें जो प्रदर्शन को नष्ट करती हैं।

प्रदर्शन विरोधी पैटर्न

Avoid: unoptimized images, render-blocking CSS/JS, layout thrashing, polling instead of events, missing caching headers, bloated frameworks, inlining large resources, not testing on slow networks, ignoring third-party scripts. Each costs 100-1000ms of performance.

यथार्थवादी परिस्थितियों पर परीक्षण

Always test on slow networks (3G, 4G), older devices (2-3 year old phones). DevTools throttling: Fast 3G = 1.6Mbps down, 750Kbps up, 40ms latency. Most real users aren't on fiber. Measure on real devices and networks regularly.

प्रतिगमन से बचना

Set performance budgets in CI/CD. Use synthetic monitoring for early detection. Compare before/after metrics. Educate team on performance impact. Measure third-party impact (analytics, ads, tracking). Budget for unavoidable dependencies.

त्वरित जाँच

त्वरित जाँच: एक सामान्य प्रदर्शन विरोधी पैटर्न क्या है?

  • इवेंट के बजाय पोलिंग
  • सर्विस वर्कर्स का उपयोग
  • छवि अनुकूलन
Answer