Skip to content

perf(site): serve release images through astro:assets - #184

Merged
Alexays merged 1 commit into
feat/changelog-playbackfrom
feat/site-release-images
Nov 6, 2026
Merged

Alexays merged 1 commit into
feat/changelog-playbackfrom
feat/site-release-images

Conversation

@maximebrmd

Copy link
Copy Markdown
Collaborator

Why

ReleaseMedia.astro served release stills as raw PNGs, and #180 renders them at 3840x2160, so a phone would download the full file.

What changed

Following Astro's "Dynamically import images" recipe, stills use <Image> with srcset and film posters use getImage, both as WebP. The PNGs stay published for the app bundle and social previews.

Verification

  • make site-check site-test pass. The 0.8.0 poster goes from 57 KB to 16 KB.
  • No image highlight exists yet, so I switched one temporarily and read the build output: WebP, srcset, lazy loading, and the component's scoped styles all apply. That change is not committed.

Targets #178, which owns the player, so hosted CI runs only once it is retargeted to main.

@maximebrmd
maximebrmd requested a review from Alexays as a code owner November 6, 2026 14:04
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
51058a0 2026-11-06T14:43:24.395Z View logs ↗
  • Build: Failed ❌

View logs ↗
604bbaf 2026-11-06T14:04:59.966Z View logs ↗

A release image renders at 3840 pixels wide, and every visitor downloaded that
PNG. They now get WebP at the size they need, and film posters shrink too.
@maximebrmd
maximebrmd force-pushed the feat/site-release-images branch from 604bbaf to 51058a0 Compare November 6, 2026 14:41
@maximebrmd
maximebrmd force-pushed the feat/changelog-playback branch from 4dd8650 to 1e60ed4 Compare November 6, 2026 14:41
@Alexays
Alexays merged commit 2aad0b2 into feat/changelog-playback Nov 6, 2026
1 check failed
@Alexays
Alexays deleted the feat/site-release-images branch November 6, 2026 15:53
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