Building a website that still loads on a weak connection
By Onen Benard
Founder & Technical Lead

Many of the people who visit your website are not sitting at a desk on fast office internet. They are on a phone, on mobile data, perhaps in a moving taxi or at the edge of network coverage, and every megabyte they download comes out of a data bundle they paid for. A website that is heavy or slow does not just frustrate these visitors. Many simply leave before it finishes loading. The good news is that speed is mostly a matter of discipline rather than expensive technology. This guide covers the decisions that matter most.
Know what "fast" means
Google measures real visitors' experience with three figures, known as Core Web Vitals, and uses them as one of the signals in search ranking:
| Measure | What it tells you | Good result |
|---|---|---|
| Largest Contentful Paint (LCP) | How long until the main content, usually the large image or headline, is visible. | 2.5 seconds or less |
| Interaction to Next Paint (INP) | How quickly the page responds when someone taps or clicks. | 200 milliseconds or less |
| Cumulative Layout Shift (CLS) | How much the page jumps around while it loads. | 0.1 or less |
Google's free PageSpeed Insights tool shows these figures for any public page. Look at the mobile results, not desktop, and remember that a test from a fast connection flatters you. Whenever possible, also try the site yourself on an ordinary, mid-range Android phone using mobile data.
Set a weight budget
Decide in advance how heavy a page is allowed to be, and treat that limit seriously. As a working target, we aim for a first visit to the homepage to download well under one megabyte. A budget turns speed from a vague wish into a rule: if a new feature or image would break the budget, something else has to become lighter.
Images: the biggest win by far
On most slow websites, images make up the majority of the weight. Four habits fix most of the problem:
- Serve the right size. A phone screen does not need a 4,000-pixel photograph. Prepare each image in several sizes and let the browser choose the smallest one that still looks sharp, using the
srcsetattribute. - Use modern formats. WebP and AVIF images are typically much smaller than JPEG or PNG at the same visual quality, and all current browsers support them.
- Load images only when needed. Images further down the page should load as the visitor scrolls towards them. The main image at the top is the exception: it should load immediately, with high priority, because it usually determines your LCP score.
- Reserve the space. Give every image its width and height so the browser can hold the space while it loads. This alone removes most layout shift.
Just as important, make this automatic. If your team uploads photos straight from a phone, the website should resize and convert them itself. Expecting busy editors to remember image settings is how fast websites become slow ones.
Fonts: fewer and closer
Every font family and weight is another file to download. Limit yourself to one or two families and only the weights you actually use. Host the font files on your own server, in the compact WOFF2 format, rather than loading them from a third-party service, which costs an extra connection and shares your visitors' data with that service. Use font-display: swap so text appears immediately in a fallback font, instead of staying invisible while the custom font loads.
JavaScript: send less of it
Scripts are expensive twice: once to download, and again for the phone's processor to run. On a budget phone, a large script bundle can freeze a page for seconds after it appears to have loaded, which is exactly what INP measures. Some practical rules:
- Question every plugin, slider and animation library. Modern browsers do a great deal natively with plain HTML and CSS.
- Load scripts with
deferso they never block the page from appearing. - Be strict with third-party scripts such as chat widgets, trackers and embedded feeds. Each one adds weight you do not control. Where you can, load them only when the visitor asks for them, for example when they tap the chat button.
Let the network work for you
Compress text files on the server with Brotli or gzip, which commonly shrinks HTML, CSS and JavaScript dramatically. Give static files long cache lifetimes so returning visitors download almost nothing. Serve files through a content delivery network with servers near your visitors, so each request travels hundreds of kilometres rather than thousands.
Design for bad moments
Connections drop. A well-built site degrades gracefully when they do. Make sure the essentials, such as reading content and sending a contact form, work even if a script fails to load. Show clear messages while something is loading or sending, so visitors do not tap repeatedly. Offer a WhatsApp or phone option for people who would rather not fill in a form on a weak signal.
Keep it fast after launch
Websites rarely launch slow; they become slow, one large photo and one extra plugin at a time. Check your Core Web Vitals every month, review any new third-party script before adding it, and keep automatic image processing switched on. Speed is a habit, not a one-off project.
Checklist
- Check the mobile Core Web Vitals in PageSpeed Insights.
- Set a page-weight budget and keep to it.
- Serve images in modern formats, in several sizes, with width and height set.
- Load images below the fold lazily, and the main image with high priority.
- Use one or two self-hosted WOFF2 fonts with
font-display: swap. - Cut JavaScript and delay third-party scripts until they are needed.
- Turn on compression, long caching and a CDN.
- Make sure forms and content still work when scripts fail.
Every website we build follows this list from the first day. If you would like to know how your current site performs for visitors on mobile data, send us the link and we will tell you what we find.
Written by Onen Benard, Founder & Technical Lead