मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)75k · #2975

performance-budget

यह क्या करती है

यह स्किल परफ़ॉर्मेंस बजट सेट करती और जाँचती है, जो फ़ाइल आकार और गति की तय सीमाएँ हैं और सीमा पार होने पर बिल्ड फ़ेल कर देती हैं। यह उन टीमों के लिए है जो साइट को बढ़ने के साथ भी तेज़ रखना चाहती हैं।

कब इस्तेमाल करें

  • ✓जब आप एजेंट से अपने प्रोजेक्ट के बिल्ड या pull request जाँच में परफ़ॉर्मेंस सीमाएँ जुड़वाएँ।
  • ✓जब आपका ऐप धीमा होता जाए क्योंकि हर बदलाव थोड़ा और वज़न जोड़ता है।
  • ✓जब आप नई डिपेंडेंसी जोड़ें और पक्का करना चाहें कि वह आकार सीमा के भीतर रहे।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/performance-budget/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप मेरे प्रोजेक्ट में आकार और गति की सीमाएँ सेट कर सकते हैं, ताकि धीमे बदलाव लाइव होने से पहले पकड़े जाएँ?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट बंडल आकार की सीमाएँ size-limit और Lighthouse CI के assertions के साथ आपकी continuous integration पाइपलाइन में जोड़ता है। वह आकार और गति की सीमाएँ तय करता है, और कोई बदलाव उनसे आगे जाए तो जाँच फ़ेल कर देता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Enforce performance budgets in CI

Without automated enforcement, performance degrades gradually — each PR adds a small library, each feature adds a few KB, and within months the app that loaded in 2 seconds now takes 5. Performance budgets make regressions visible at PR time rather than after user complaints. Catching 'this PR added 200KB to the bundle' in review is far cheaper than debugging a slow production site.

Quick Reference

  • Define specific thresholds: max bundle size, min Lighthouse score, max LCP time
  • Fail CI when budgets are exceeded to prevent performance regressions
  • Size budgets catch accidental heavy dependencies; Lighthouse budgets catch runtime regressions
  • Start with loose budgets and tighten them as you optimize
  • Monitor production RUM so regressions are caught after deploy, not only in CI

Check

Does this project have performance budgets defined? Check package.json and CI configuration for size or Lighthouse thresholds.

Fix

Set up bundle size limits with size-limit and Lighthouse CI assertions in the CI pipeline.

Explain

Explain performance budgets, how to choose appropriate thresholds, and how to enforce them with size-limit and Lighthouse CI.

Code Review

Inspect CI workflows, package.json, and Lighthouse or bundle-size config for explicit thresholds. Flag repos where budgets are missing, too loose to catch regressions, or unenforced on pull requests. Check whether production RUM and alerting are wired to detect regressions after release.


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

Rule page: https://frontendchecklist.io/rules/testing/performance-budget

अक्सर पूछे जाने वाले सवाल

आकार बजट और रनटाइम बजट में क्या अंतर है?

स्किल कहती है कि आकार बजट भारी डिपेंडेंसी पकड़ते हैं, जबकि Lighthouse बजट धीमे रनटाइम व्यवहार पकड़ते हैं।

क्या सीमाएँ सख़्त से शुरू होनी चाहिए?

स्किल ढीली सीमाओं से शुरू करने और साइट ऑप्टिमाइज़ होने पर उन्हें कसने का सुझाव देती है।

क्या बजट लॉन्च के बाद की निगरानी की जगह ले लेते हैं?

नहीं। स्किल असली यूज़र डेटा की निगरानी भी करने की सलाह देती है, ताकि डिप्लॉय के बाद गिरावट पकड़ी जा सके।

जानकारी

लेखक का मूल विवरण

Use when reviewing CI configuration, bundle analysis workflows, or pull requests that add dependencies and assets. Distinguish bundle-size budgets from runtime budgets such as Lighthouse or Core Web Vitals so teams can enforce both.

repo: thedaviddias/Front-End-Checklist

लोकप्रियता

GitHub स्टार
75k
रैंकिंग में स्थान
#2975
लाइसेंस
MIT
अपडेट की गई
31/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills