← Binderdex dev log

The web checklist became a review gate

#web#product

Mismatched picture frames queue at an amber archway and leave it as a tidy uniform row, while one red frame tries to go over the top

Binderdex is a Pokémon card collection and price app, and its card pages are full of pictures. I'd worked through the Chrome team's web performance guidance as a checklist, and it cut page weight across the image-heavy pages of the app. Every one of those gains was one refactor away from vanishing the next time a batch of pages shipped, and noticing that mattered more than the checklist did.

So the checklist became a review gate. Every page that carries an image now goes through one shared image module: a single code path for responsive sizes, lazy loading, and an explicit width and height so the layout doesn't shift while a picture loads. A new page that bypasses the module gets flagged by the same checks that caught the original offenders.

// every page image now goes through one module
<Img src={card.image} width={360} height={252}
     sizes="(max-width: 640px) 90vw, 360px"
     lazy />
// a page that hand-rolls its own <img> gets flagged in review

It took a second pass for an honest reason. The optimization was popular because it made the numbers move. A review gate is unpopular because it makes future work slightly slower, and it's tempting to ship the win and skip the gate. The trade is worth it. A checklist that lives in a document decays, and one that lives in the code path doesn't.

If you run a content-heavy site, the takeaway is simple. Once you've paid for a real audit, spend the extra afternoon turning it into something a reviewer can enforce. Your p75 numbers, the load times that three quarters of real visits come in under, get to keep the win.

This is the build log for Binderdex (www.binderdex.com) · All entries · Weekly essays