rules/web/performance.md
This file extends common/performance.md with web-specific performance content.
| Metric | Target |
|---|---|
| LCP | < 2.5s |
| INP | < 200ms |
| CLS | < 0.1 |
| FCP | < 1.5s |
| TBT | < 200ms |
| Page Type | JS Budget (gzipped) | CSS Budget |
|---|---|---|
| Landing page | < 150kb | < 30kb |
| App page | < 300kb | < 50kb |
| Microsite | < 80kb | < 15kb |
const gsapModule = await import('gsap');
const { ScrollTrigger } = await import('gsap/ScrollTrigger');
width and heightloading="eager" plus fetchpriority="high" for hero media onlyloading="lazy" for below-the-fold assetsfont-display: swapwill-change narrowly and remove it when donerequestAnimationFrame or established animation libraries for JS motion