Performance audit 0.9.0
Audit static HTML for CLS, lazy-loading, and render-blocking scripts — with safe auto-fixes.
Commands
velinstyle perf audit samples/
velinstyle perf suggest .
velinstyle perf fix . --write
velinstyle perf audit . --json
Rules
| Rule | Severity | Autofix |
|---|---|---|
img-missing-dimensions | warning | width/height defaults |
img-no-lazy | info | loading="lazy" |
script-no-defer | warning | defer on external scripts |
large-inline-style | info | — |
font-display-swap | info | hint in report |
unused-velin-import | info | suggests runtime subpath |
CI
Run npm run test:perf in the framework repo, or npx velinstyle perf audit samples/ --json in CI. Exit code 1 when any error-severity issue is found.