Doctor: the performance rules are errors (owner's decision for 1.18.0); lowered or silenced per rule in iapl-doctor.json; growth stays warnings; audit reports them as errors; legacy:site lists perf-* errors an old site meets; docs, skills, changelog; reference skills refreshed
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
f0127ac1b8
commit
8cf5a58045
+11
-2
@@ -67,13 +67,22 @@ once there are more than 20.
|
||||
> barrels are no longer one client boundary, the table of contents measures once per frame, Turnstile stops
|
||||
> polling once drawn, the cookie banner honours reduced motion. Nothing to do.
|
||||
>
|
||||
> 9. **`iapl-doctor` can now fail on the performance rules** (`perf-*`: images config, fonts, render-blocking,
|
||||
> embeds, animations, a budget test; `--url`: uncompressed HTML, blocking scripts, more than four font preloads, a
|
||||
> lazy first image, HTML over 150 KB; `--deep`: stored images over 1.5 MB / 2560 px) — they are **errors**, so a
|
||||
> plain run exits 1 on them and `--strict` too. None measures time: the same site gives the same answer every run.
|
||||
> A site with Playwright and no budget test gets `perf-budgets` (copy the `iapl-performance` skill's template).
|
||||
> Lower one with a reason: `iapl-doctor.json` → `"rules": { "perf-fonts": { "severity": "warning", "reason": "…" } }`;
|
||||
> silence one: `{ "off": true, "reason": "…", "until": "2027-03-01" }` (docs/doctor.md). The `growth-*` rules stay
|
||||
> warnings and infos.
|
||||
>
|
||||
> **New, off until a project turns it on:** `iapl({ unusedMedia: true })` — above the Media list, how many files no
|
||||
> page, entry or setting uses, with a link to Payload's list filtered to them (deleting stays manual; **run
|
||||
> `pnpm generate:importmap`** after turning it on); `forms: { submissionRetentionDays }`; `Media eager` (a logo
|
||||
> above the fold, no high priority); `createNotFoundPage({ load, placeholder })` (the reference site keeps its 404
|
||||
> height: CLS 0).
|
||||
> **Doctor:** the `performance` and `growth` groups (warnings; `growth-versions-config` is a hint), thresholds in
|
||||
> `iapl-doctor.json` → `growth`. **Agents:** the `iapl-performance` skill (`pnpm exec iapl-skills`) and the budget
|
||||
> **Doctor:** the `performance` group (errors, point 9) and the `growth` group (warnings and infos;
|
||||
> `growth-versions-config` is a hint), thresholds in `iapl-doctor.json` → `growth`. **Agents:** the `iapl-performance` skill (`pnpm exec iapl-skills`) and the budget
|
||||
> gate template. **Recommended for projects:** `index: true` on `slugHistory.slug`; the heading font with
|
||||
> `preload: false` (the starter's default now); a placeholder of the 404 content's height.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user