chezmoi-source (чистая пересборка, не дамп 1.2 ГБ): - dot_claude: CLAUDE.md лин-роутер, AGENTS.md.tmpl (VPS вычищен), settings.json.tmpl (deny-щит 20 + security-guard hook), rules (structure + ECC 21 язык), 30 generic ECC-агентов, health-check - dot_codex: symlink-паритет; dot_agents: registry 13 скриптов HOME-генерик + методология docs - плагины: plugins.manifest + bootstrap Слой 1b (marketplace+install) - launchd: health.plist (PATH-фикс 127) + session-reaper.example - smoke++: secret-токен guard + канон-проверки (зелёный) - 0 hard личных данных; cut личного (kb/references/gsd/owner) → Ф4
1.8 KiB
1.8 KiB
This file extends common/performance.md with web-specific performance content.
Web Performance Rules
Core Web Vitals Targets
| Metric | Target |
|---|---|
| LCP | < 2.5s |
| INP | < 200ms |
| CLS | < 0.1 |
| FCP | < 1.5s |
| TBT | < 200ms |
Bundle Budget
| Page Type | JS Budget (gzipped) | CSS Budget |
|---|---|---|
| Landing page | < 150kb | < 30kb |
| App page | < 300kb | < 50kb |
| Microsite | < 80kb | < 15kb |
Loading Strategy
- Inline critical above-the-fold CSS where justified
- Preload the hero image and primary font only
- Defer non-critical CSS or JS
- Dynamically import heavy libraries
const gsapModule = await import('gsap');
const { ScrollTrigger } = await import('gsap/ScrollTrigger');
Image Optimization
- Explicit
widthandheight loading="eager"plusfetchpriority="high"for hero media onlyloading="lazy"for below-the-fold assets- Prefer AVIF or WebP with fallbacks
- Never ship source images far beyond rendered size
Font Loading
- Max two font families unless there is a clear exception
font-display: swap- Subset where possible
- Preload only the truly critical weight/style
Animation Performance
- Animate compositor-friendly properties only
- Use
will-changenarrowly and remove it when done - Prefer CSS for simple transitions
- Use
requestAnimationFrameor established animation libraries for JS motion - Avoid scroll handler churn; use IntersectionObserver or well-behaved libraries
Performance Checklist
- All images have explicit dimensions
- No accidental render-blocking resources
- No layout shifts from dynamic content
- Motion stays on compositor-friendly properties
- Third-party scripts load async/defer and only when needed