Performance Budgets for Phone-on-Wi-Fi Apps

Published 2025-12-29 by Faraz Rahimi

If the JS bundle is a novel, the aisle will punish you. Budget kilobytes and round trips like they cost minutes, because they do.

Performance Budgets for Phone-on-Wi-Fi Apps

Tags: Performance, React, Mobile, Warehouse, unlisted

I watch the main bundle for operator apps. No charts library unless the page is a dashboard. No 3D. Images compressed. Routes split.

I test on throttled 3G once, even if the warehouse is "on Wi-Fi," because aisle 7 is a liar.

Round trips

A lookup that needs five serial requests will feel broken. I combine location into the match response. Waterfalls are a desktop luxury.

Memory leaks on long shifts

A SPA left open for ten hours will collect photos in memory if you let it. I revoke object URLs. I do not keep every capture in a React state array for fun.

Original post: https://farazrahimi.com/posts/performance-budgets-for-phone-on-wi-fi-apps