Skip to content

A lighter header mark, the CSP and Shiki warnings, two metaTitles - #153

Merged
aledbf merged 3 commits into
mainfrom
aledbf/perf-seo-from-blog
Nov 25, 2026
Merged

aledbf merged 3 commits into
mainfrom
aledbf/perf-seo-from-blog

Conversation

@aledbf

@aledbf aledbf commented Nov 25, 2026

Copy link
Copy Markdown
Member

Why

The same pass the blog got after a Lighthouse run and a crawl: what's heavy, what the build warns about, and pages whose <title> repeats their H1.

What changes

  • Header mark. The header drew brand's 256 px PNG, 42 kB, at the nav's height. tools/marks.mjs derives a 96 px WebP beside each copy in build and dev; Vite inlines it in the CSS (about 4 kB each). The PNGs stay brand's byte-for-byte copies (tools/refgen/brand.go); the WebPs are gitignored.
  • CSP warning. 'self' is scoped to style elements. Astro warned that style-src's 'self' doesn't reach style-src-attr; an attribute has no address for it, so the policy is the same.
  • Shiki warning. Starlight colours code with Expressive Code; Astro's own Shiki coloured nothing here (no astro-code in dist, 61 pages with Expressive Code). With syntaxHighlight: false the built site is byte for byte the same, without the warning.
  • Screenshots re-encode at WebP 75 (sharpImageService).
  • metaTitle for the two hand-written pages whose <title> was their H1: NitroTPM and operations.

Not changed

  • admin/runners also has a <title> equal to its H1, but it's generated from spin's docs/runners.md: its metaTitle belongs there.
  • Titles of 62 and 63 characters are within Head.astro's own 30 to 65.
  • Descriptions (none over 155), alts (none over 100), image heights (all set) and the frame-ancestors header were already right.
  • Starlight's i18n and 404 warnings are outside this pass.

Checked

  • task check passes (reference, gate, links: 533 pages, every link resolves).
  • task exposure passes.

🤖 Generated with Claude Code

aledbf and others added 3 commits November 25, 2026 09:19
…B PNG

src/assets/logo*.png are brand's 256 px copies, compared byte for byte by tools/refgen/brand.go.
tools/marks.mjs derives a 96 px WebP beside each in build and dev; Vite inlines it in the CSS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…stro's Shiki off

The CSP warning said style-src's 'self' doesn't reach style-src-attr; an attribute has no address
for it, so the policy is the same. Starlight colours code with Expressive Code: with Astro's own
Shiki off the built site is byte for byte the same, without its CSP warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

@aledbf
aledbf merged commit f49ffc2 into main Nov 25, 2026
1 check passed
@aledbf
aledbf deleted the aledbf/perf-seo-from-blog branch November 25, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant