Docs: performance.md, the iapl-performance skill, AGENT.md 6.11b, doctor.md, audit, api.md, the measurements and the audit

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-12-01 13:51:43 +01:00
co-authored by Claude Opus 5.5
parent 801b897ea0
commit c6c5dfbcbf
16 changed files with 1367 additions and 18 deletions
+3 -1
View File
@@ -132,12 +132,14 @@ export function Media({ resource, priority, className }: Props) {
}
```
**`mediaImageProps(resource, { alt?, sizes?, priority?, placeholderColor? })`** → `next/image`
**`mediaImageProps(resource, { alt?, sizes?, priority?, eager?, placeholderColor? })`** → `next/image`
props or `null` (video, PDF, a bare id, no `width`/`height`):
- `width`/`height` from the document (no layout shift), `alt` from the document (override: `alt`, `''` for decoration);
- `sizes` defaults to `'100vw'` — give the real width (`MEDIA_SIZES`);
- `priority: true` (one LCP image per page) → `loading="eager"`, `fetchPriority="high"`, `preload`
(Next 16); otherwise `loading="lazy"`;
- `eager: true` (1.18.0; above the fold but not the LCP image — a header logo) → `loading="eager"` without
`fetchPriority` or a preload, so it does not compete with the one `priority` image; the library's `<Media eager>` too;
- focal point (≠ 50/50) → `style.objectPosition`;
- `placeholder.blurDataURL` → `placeholder="blur"`;
- `placeholder.color` → `style.backgroundColor` per `placeholderColor`: `'auto'` (default — JPEG only,