Most software is built in an office with fast, stable internet and tested on recent phones. Then it ships to people moving between network coverage on a bus, topping up data in small bundles, or sharing one older Android device across a household.
The software doesn’t crash in those conditions. It just quietly fails: a form that spins forever, a payment that may or may not have gone through, a screen that shows nothing because one request timed out. Users don’t file bug reports about this. They leave.
Designing for patchy connectivity isn’t a niche concern for us in Lagos; it’s the default. But the same principles help anyone whose customers ever step into a lift, a basement or a rural area.
Assume the network will fail mid-action
The most damaging failures happen halfway through something important: submitting an order, uploading a document, confirming a transfer. Design every important action with three outcomes in mind, not two: it worked, it failed, or we don’t know yet.
That third state needs its own design. Tell the user plainly that you’re still confirming, keep what they entered, and resolve it automatically when the connection returns. Never make them wonder whether pressing the button again will charge them twice.
On the engineering side, that means:
- Idempotent requests. Give each action a unique key so that a retry is recognised as the same request, not a new one.
- Retries with backoff. Retry failed requests automatically, waiting a little longer each time, instead of surfacing an error on the first timeout.
- Server-side status checks. When the app comes back online, ask the server what actually happened rather than guessing.
Let people keep working offline
Not every app needs full offline support, but most need more than they have. A useful middle ground is an outbox: actions taken while offline are saved on the device, shown clearly as “waiting to send”, and sent in order when the connection returns.
This works well for field and operations apps (inspections, deliveries, stock counts, sales visits), where the worst outcome is someone losing half an hour of entries because the network dropped on the last screen.
A few rules keep an outbox trustworthy:
- Save locally first, then sync. The user’s work should survive the app being closed.
- Show sync status per item, not just a global spinner.
- Decide how conflicts are resolved before you build, not after the first support complaint. “Last edit wins” is fine for some data and dangerous for others, such as stock levels.
Make every byte earn its place
Data still costs real money for many people, and slow connections make every extra kilobyte felt. A few changes make a big difference:
- Serve images at the size they’re shown, in modern formats like WebP, and lazy-load anything below the fold.
- Ship less JavaScript. Each library you add is downloaded, parsed and run on someone’s mid-range phone. Server-rendered pages with small, targeted scripts load faster than a large client-side app on a weak connection.
- Cache what doesn’t change. Fonts, icons, reference data and previously viewed screens should come from the device, not the network, on the second visit.
- Paginate and search on the server. Don’t send five thousand records so the phone can filter them.
Design honest loading and error states
Spinners that never end are the most common symptom of software designed for perfect networks. Every screen that loads data should have:
- a skeleton or partial view that shows the shape of the page immediately;
- a timeout after which the user sees a clear message and a retry option;
- cached content from the last successful load, labelled as such, where that’s useful.
Error messages should say what happened and what to do next. “Something went wrong” is not a message; “You’re offline. Your changes are saved and will send when you reconnect” is.
Test on the network your users have
The simplest improvement is to stop testing only on office Wi-Fi. Browser developer tools can throttle connections to slow 3G speeds, and both Android and iOS tooling can simulate poor networks. Better still, keep a modest, older Android phone in the team and use it on mobile data for a day before each major release.
Watch what happens when you switch to airplane mode halfway through checkout. If the answer is “I’m not sure”, you’ve found your next piece of work.
The takeaway
Treat the network as unreliable by default. Give important actions a clear “still confirming” state, save work locally before you sync, cut every unnecessary byte, and test on the phones and connections your customers actually use.
If your app works well on a bad day, it will feel fast on a good one. That’s how we approach the web and mobile apps we build at GreyLoft.



