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.
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 repositoriesstudioLandingreads, 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
thumbat 200x125 for exactly this slot, and the rest of the studio already prefers it:lookNow(src/web/pages/looks.ts:154) pickspictured(looks,"thumb") ?? pictured(looks,"desktop")and renders atLOOK_SIZES[look.kind];thumbLook(looks.ts:48) does the same for small slots. OnlystudioLanding(src/web/pages/site.ts:546-575) hard-codesl.kind === "desktop"andLOOK_SIZES.desktop.Done looks like
Files I expect to change:
src/web/pages/site.ts(studioLanding), possibly exportingthumbLook-style selection fromsrc/web/pages/looks.tsrather than a second copy of the rule;test/studio.test.ts(ortest/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 whatLOOK_SIZESare; #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.