Skip to content

Blog videos: lighter posters - #166

Merged
pixari merged 1 commit into
mainfrom
claude/sweet-turing-0ykekv
Nov 24, 2026
Merged

pixari merged 1 commit into
mainfrom
claude/sweet-turing-0ykekv

Conversation

@pixari

@pixari pixari commented Nov 24, 2026

Copy link
Copy Markdown
Member

A video's poster downloads when the page opens, although the video sits far down the post, and on a phone it competes with the cover image for the first seconds. On "An assistant that asks first" the poster was 154 KB against a 23 KB cover, and the post scored 96 to 97 for performance (largest paint 2.5 to 2.9 s).

  • The five posters are re-encoded with mozjpeg at quality 72 and at most 1440 px wide (twice the column width): 407 KB together becomes 203 KB, the largest from 154 KB to 68 KB. The <video> elements are unchanged.
  • scripts/record-post.mjs writes new posters the same way.

Verified: npm test (118 pass). Lighthouse, phone profile, local build: that post 98 five times out of five (largest paint 2.4 s).


Generated by Claude Code

A video's poster downloads when the page opens, although the video sits far
down the post, and competes with the cover image for the first seconds on a
phone. The five posters are re-encoded (mozjpeg, quality 72, at most 1440 px
wide, twice the column): 407 KB together becomes 203 KB, the largest from
154 KB to 68 KB. record-post.mjs writes new posters the same way.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0187cnkVKwRYfbFPY3nTZj8k
@github-actions

Copy link
Copy Markdown
Contributor

Preview: download the built site for 05aa407, unzip it and run npx serve in the folder (kept for 14 days).

@pixari
pixari marked this pull request as ready for review November 24, 2026 07:37
@pixari
pixari merged commit 7c6e0c1 into main Nov 24, 2026
4 checks passed
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.

2 participants