Lab 04: Performance Architecture
Overview
Step 1: Core Web Vitals Architecture Overview
CWV Targets (2024 thresholds):
LCP (Largest Contentful Paint) — < 2.5s (Good), < 4s (Needs Improvement)
INP (Interaction to Next Paint) — < 200ms (replaces FID)
CLS (Cumulative Layout Shift) — < 0.1
CSS Contribution:
LCP: render-blocking CSS, missing preload, no critical CSS inline
CLS: images without dimensions, late-loaded fonts, dynamic content injection
INP: long tasks from layout thrashing, heavy style recalculationsStep 2: LCP Optimization
Step 3: CLS Prevention
Step 4: INP Optimization
Step 5: content-visibility for Long Pages
content-visibility for Long PagesStep 6: Critical CSS Extraction
Step 7: HTTP/2 Push vs Preload
Step 8: Capstone — Critical CSS Extractor
Summary
CWV Metric
CSS Technique
Impact
Last updated
