Repository navigation
Blog videos: lighter posters - #166
Merged
Merged
Conversation
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
Contributor
|
Preview: download the built site for 05aa407, unzip it and run |
pixari
marked this pull request as ready for review
November 24, 2026 07:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).
<video>elements are unchanged.scripts/record-post.mjswrites 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