From c6c5dfbcbf0bc3f21cd68214e161c00212c73eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Smoli=C5=84ski?= Date: Tue, 1 Dec 2026 13:51:43 +0100 Subject: [PATCH] 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 --- docs/README.md | 1 + docs/agent/AGENT.md | 30 +- docs/agent/skills/iapl-audit/SKILL.md | 7 + docs/agent/skills/iapl-audit/scripts/audit.sh | 8 + docs/agent/skills/iapl-performance/SKILL.md | 54 ++ .../iapl-performance/resources/perf-lab.mjs | 165 ++++ .../resources/performance.spec.template.ts | 47 ++ .../skills/iapl-reference/resources/api.md | 8 +- docs/dev/perf/README.md | 136 ++++ docs/dev/perf/webpack-after.json | 751 ++++++++++++++++++ docs/doctor.md | 16 +- docs/hooks.md | 2 +- docs/lightbox.md | 3 +- docs/media.md | 4 +- docs/pages.md | 5 + docs/performance.md | 148 ++++ 16 files changed, 1367 insertions(+), 18 deletions(-) create mode 100644 docs/agent/skills/iapl-performance/SKILL.md create mode 100644 docs/agent/skills/iapl-performance/resources/perf-lab.mjs create mode 100644 docs/agent/skills/iapl-performance/resources/performance.spec.template.ts create mode 100644 docs/dev/perf/README.md create mode 100644 docs/dev/perf/webpack-after.json create mode 100644 docs/performance.md 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 1bb05d3..cae5c7d 100644 --- a/docs/agent/AGENT.md +++ b/docs/agent/AGENT.md @@ -1041,22 +1041,29 @@ 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 `