I build in Nairobi, where a “fast” connection is a luxury and a cheap one is a lottery. That constraint has made me a better designer than any style guide.
Weight is a feature
Every kilobyte is a tax on someone’s data bundle. The discipline is simple: measure the page, then cut it.
- Images: serve the right size, lazy-load below the fold, prefer SVG for icons.
- Fonts: subset to the glyphs you use, ship at most two weights.
- JavaScript: ship none if the server can render it. This site does exactly that.
Progressive by default
A page should be useful before it is pretty. Order the markup so the meaningful content arrives first and the decoration loads later, if at all.
<!-- The article text is the first thing in the document. -->
<article>…</article>
<!-- Enhancements load after, and the page still works without them. -->
<script src="/static/site.js" defer></script>
If the JavaScript fails, the user still reads the article. If the CSS fails, the user still reads the article. If the image fails, the user still reads the article. The article is the product.
Honest loading states
Spinners lie. They say “working” when the request may have already failed. Prefer:
- Skeletons that match the real layout, so the jump on load is small.
- A timeout with a retry button, not an infinite spinner.
- Cached data shown immediately, with a subtle “updating…” indicator.
Test on a throttled phone
Chrome DevTools throttling is a start. A real 3G connection on a mid-range Android is the truth. I keep a cheap device on my desk and test every release on it. If it feels slow there, it is slow.
The web is for everyone. Build like it.