Skip to main content
InterviewHubPRO
Section Overview
Q34

Question 34 of 50

Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

68%
Web Vitals & Performance (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

Real-World Performance Budgets in CI/CD.

senior LevelMost AskedCode ExampleFormsPerformanceCI/CD & DevOps

In Simple Words: Preventing regressions from entering production:

  • Use Lighthouse CI (LHCI) in GitHub Actions:
    json
    {
      "ci": {
        "assert": {
          "assertions": {
            "largest-contentful-paint": ["error", {"maxNumericValue": 2500}],
            "cumulative-layout-shift": ["error", {"maxNumericValue": 0.1}],
            "total-blocking-time": ["error", {"maxNumericValue": 200}]
          }
        }
      }
    }
    
    Fails PR builds if code additions degrade performance metrics!