diff --git a/docs/README.md b/docs/README.md index 112467a..dba805f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -50,6 +50,7 @@ API details — one file per module: | Rich text, table of contents | [richtext.md](./richtext.md) | | Headers, CSP, 2FA | [security.md](./security.md) | | SEO, metadata, sitemap, JSON-LD, llms.txt | [seo.md](./seo.md) | +| Speed: what the plugin does, what the project does, budgets, measuring, the doctor's performance group | [performance.md](./performance.md) | | Stats in the admin panel (no cookies; visitor history with consent) | [stats.md](./stats.md) | | Auto-slug | [slug.md](./slug.md) | | Light / dark theme, switcher | [theme.md](./theme.md) | diff --git a/docs/agent/AGENT.md b/docs/agent/AGENT.md index ed66d35..801dd77 100644 --- a/docs/agent/AGENT.md +++ b/docs/agent/AGENT.md @@ -1041,22 +1041,30 @@ Example `styles.css`: [section-code.md](./skills/iapl-block/resources/section-co 125 % and 150 % zoom at 1366 (common on Windows). No horizontal scroll, no clipped text, the menu works, the hero CTA is visible. -### 6.11b Speed (Core Web Vitals) +### 6.11b Speed (Core Web Vitals) — the handbook is [performance.md](../performance.md), the skill `iapl-performance` | What | How | Forbidden | |---|---|---| -| LCP image (the first visible one, usually the hero) | `` — exactly one per page | `priority` on many images, the hero as a CSS `background-image` | -| every other image | `` — `sizes` = the width on screen | no `sizes` (downloads the full width), `` | +| LCP image (the first visible one, usually the hero) | `` — exactly one per page (preload + `fetchpriority="high"`) | `priority` on many images, the hero as a CSS `background-image`, a lazy hero | +| above the fold, not the LCP (header logo) | `` — loads at once, no high priority, no preload | `priority` on the logo (it competes with the hero) | +| every other image | `` — `sizes` = the width on screen; lazy by default | no `sizes` (downloads the full width), `` | | placeholder | `buildMediaPlaceholderHook` + a field in Media (blur + color) | empty boxes that "jump in" while loading | +| uploads | `buildOptimizeUploadHook` (stops images over 1.5 MB / 2560 px, converts on request); `iapl-doctor --deep` counts stored images over the limits | 8 MB phone photos in the library | | background video | `videoMode="background"`, MP4 H.264 ≤ 20 MB, no sound, with a poster | a video as the hero without a poster, `autoplay` with sound | | video with content | `videoMode="player"` (loads after a click) | `preload="auto"` | -| YouTube | `` from `/client` (the iframe only after a click) | a bare `