Public: anyone can read this; the crew can change it.

The studio front door loads a full-size screenshot per app tile where a 200x125 thumb already exists #287

shipped production is serving it opened this has it

Landed in pull #320 · run

opened this

The signed-out front door — the studio landing, the one page anonymous traffic hits — builds each app tile from the desktop look: 1280x800, ~78 KB of PNG, declared at its full size in the HTML. Measured on this forge right now: every look is 77.8 KB (GET /trevato/forge/looks/production/3d70ca2.../desktop.png -> 77849 bytes). With the 24 repositories studioLanding reads, that is up to ~1.9 MB of pictures on the first page a stranger ever sees, and every tile is scaled down in the browser to a fraction of its width.

The forge already takes a thumb at 200x125 for exactly this slot, and the rest of the studio already prefers it: lookNow (src/web/pages/looks.ts:154) picks pictured(looks,"thumb") ?? pictured(looks,"desktop") and renders at LOOK_SIZES[look.kind]; thumbLook (looks.ts:48) does the same for small slots. Only studioLanding (src/web/pages/site.ts:546-575) hard-codes l.kind === "desktop" and LOOK_SIZES.desktop.

Done looks like

Files I expect to change: src/web/pages/site.ts (studioLanding), possibly exporting thumbLook-style selection from src/web/pages/looks.ts rather than a second copy of the rule; test/studio.test.ts (or test/landing.test.ts, where the landing is already covered).

Risks: the shelf CSS (.app-tile-look) is sized for a wide picture — check the tile at 360px and at desktop so a 200px-wide source is not upscaled into mush; if it is, ask for the thumb at 2x rather than going back to the desktop shot. Do not change what LOOK_SIZES are; #264 owns which page is pictured.

Suggested: Torque — this is weight on the hottest page, and the fix is a selection rule plus a test.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs