Below the Fold

A designer’s path to creative technologist. Thirty days, ten minutes each, on how software actually gets made.

A snail with a spinner shell A snail crawling along the ground, its shell drawn as a red loading spiral.

Why pages are slow

After today, you can name the few causes behind most slow pages, read a waterfall chart, and tell latency from bandwidth.

Dip your toes 1 min

A slow page is rarely slow for one reason. When an Amazon product page lags, some of the wait is distance: each message travels to Amazon’s servers and back. Some is the page asking for things one after another, each waiting on the last. Often the biggest share is the phone running code, the instructions that make the page work, before the buy button responds. Images get blamed first, but they’re usually a smaller part. Speed matters to designers because many of its causes start in a design file. A gallery of twelve full-size photos adds weight, and a banner that loads late pushes the whole page down. Every browser has tools that show where the time goes, so ask for that measurement before anyone guesses at a fix.

The full lesson 10 min

Why this exists

Open a product page on Amazon. There’s a title, a gallery of photos, a price, and a box with the buy button and a delivery estimate. Below that come reviews, questions from other shoppers, and rows of related products. Every one of those pieces comes from somewhere, and each takes time to arrive.

When a page like that feels slow, the complaint is almost always vague. “It’s slow” could mean the page took a long time to appear. It could mean the photos arrived late, or that tapping a size did nothing for a moment. It could mean the price jumped down the screen as an ad loaded above it. Those are different problems, with different causes, owned by different people.

Most slow pages come down to a handful of causes:

  • The distance between the device and the server.
  • Requests that wait on each other in a chain.
  • Too much JavaScript for the device to download and run.
  • Slow work on the server.
  • Heavy images, and scripts from other companies.

Teams that guess at the cause tend to fix the wrong one. Teams that measure first fix the right one.

Speed is also part of how a product feels, whether or not anyone names it. A page that answers a tap at once feels solid and trustworthy. The same page with a half-second pause feels cheap, even if every pixel matches the design. Designers rarely get asked about speed, but many of the decisions that shape it start in a design file.

What it is

Two words come up in every speed conversation. Latency is the delay before data starts to arrive, mostly the time a message takes to travel to a server and back. Bandwidth is how much data a connection can carry per second once it’s flowing.

Think of a road. Latency is how far away the destination is. Bandwidth is how many lanes the road has.

The two limit different things. Bandwidth decides how fast a large file downloads, like a video or a big photo. Latency decides how long every single request takes to get started, however small it is. A round trip to a nearby server might take a few hundredths of a second. On a phone with a weak signal, or to a server on another continent, it can take ten times that.

Latency hurts most when requests wait on each other. If the page needs one answer before it knows to ask the next question, each wait adds to the last. A faster connection barely helps, because the files are small and the time goes into the waiting. Bringing the server closer, or asking fewer questions in a row, helps a lot.

That’s why large products keep copies of their files on servers spread around the world, close to users. Day 19 covers those networks; for now, know that distance is a cost, and teams pay real money to shorten it.

Latency versus bandwidth for a chain of requestsA bar chart of load time for a page that makes 30 small requests, one after another. Today it takes 3.0 seconds. With twice the bandwidth, it takes 2.8 seconds. With half the latency, it takes 1.6 seconds. Illustrative numbers.A page that makes 30 small requests, one after anotherTodayTwice the bandwidthHalf the latency3.0 s2.8 s1.6 sIllustrative numbers
Figure 1. For a page built from many small requests in a row, less latency helps far more than more bandwidth. Look at the bottom bar. Halving the latency nearly halves the load time, while doubling the bandwidth barely moves it.

You can watch all of this happen. Every browser has developer tools, and their network panel draws a waterfall: every request in a page load as a bar on a timeline. Each bar starts when the browser asks and ends when the last byte arrives. Bars that start late are usually waiting for something earlier. Read top to bottom, a waterfall shows the order in which the page discovered what it needed.

A waterfall chart for one product pageSeven requests on a timeline from 0 to 3 seconds. The page HTML loads first. Styles, the JavaScript bundle, and the product photo start once the HTML arrives. The JavaScript bundle runs until 1.6 seconds. Only then do price and stock and reviews start. Recommendations start after price and stock and end near 2.9 seconds. Illustrative numbers.Illustrative numbersPage HTMLStylesJavaScript bundleProduct photoPrice and stockReviewsRecommendationsWaits for the JavaScript0 s1 s2 s3 s
Figure 2. A simplified waterfall for loading a product page, with each request drawn as a bar on a timeline. Look at the price and stock request. It can’t start until the JavaScript finishes, because the JavaScript is what asks for it.

The JavaScript bar in that picture is a bundle. Day 2 mentioned the build, the step that prepares code to ship. For JavaScript, the build combines many source files into a few smaller ones, called bundles. The browser has to download and then run a bundle before the page’s interactive parts work.

A bigger bundle costs twice. It takes longer to download, and then the device’s processor has to run it. On a recent laptop, running it is quick. On a mid-range phone, running the same code can take longer than downloading it, sometimes several times longer.

That’s why a staircase in a waterfall is worth noticing. Here, the bundle is what knows to ask for the price, so the price waits for the bundle to arrive and run. Engineers fix a staircase by letting the page ask for important things sooner. The server might include the price in the HTML, or the page might start that request before its JavaScript finishes.

How it shows up in your work

Bug reports and user complaints come first. Vague complaints get easier to act on once you split them into the three kinds of slow: slow to appear, slow to respond, and jumpy.

Google’s Core Web Vitals do exactly that. They’re three measures of how a page feels to use, each with a threshold Google calls good. Largest Contentful Paint measures how long the main content takes to appear. Interaction to Next Paint measures how long the page takes to respond visibly after a tap or a click. Cumulative Layout Shift measures how much content jumps around while you read.

Core Web Vitals and the complaints they measureThree complaints, each pointing to a metric. It’s slow to show up points to Largest Contentful Paint, good at 2.5 seconds or less. It’s slow when I tap points to Interaction to Next Paint, good at 200 milliseconds or less. It jumps as I read points to Cumulative Layout Shift, good at a score of 0.1 or less.What people sayWhat engineers measure“It’s slow to show up”“It’s slow when I tap”“It jumps as I read”Largest Contentful PaintInteraction to Next PaintCumulative Layout ShiftGood: 2.5 seconds or lessGood: 200 milliseconds or lessGood: a score of 0.1 or less
Figure 3. The three Core Web Vitals, each matched to the complaint it measures. Look at layout shift. It’s the one most often caused by design decisions, like a banner that pushes the page down after it loads.

Google scores each metric from real visits, on both phones and computers. A page passes when at least three in four visits meet each threshold. Google recommends good scores for success in its search results, so the numbers often come up in launch reviews. Interaction to Next Paint is the newest of the three. It replaced an older responsiveness metric in 2024, so older articles may describe a different set.

Layout shift is where design decisions show up most directly. A photo with no space reserved for it pushes everything down when it arrives. So does a promotional banner inserted at the top after the page loads, or a web font that swaps in with different widths. Each of those can be designed out by reserving space for content that arrives late.

The metrics also explain why some design tricks help and others don’t. A skeleton screen makes a wait feel shorter, and that’s worth having. It doesn’t move Largest Contentful Paint, though, because the metric waits for the real image or text. Showing the main content sooner, even in a simpler form, moves the number. Making the waiting prettier doesn’t.

Design reviews are the second place. Every slow cause lives at a layer of the stack map from Day 1, and each layer has different owners. Some causes start with design decisions, like a gallery of twelve full-size photos, a third carousel, or a chat widget from another company. Knowing where a cost lands tells you who to ask, and whether a cheaper version of the idea exists.

Causes of slow pages on the stack mapThe four-layer stack with a cause tagged in each layer. Frontend: heavy JavaScript and unsized images. Backend: slow API responses. Data: slow queries. Infrastructure: servers far from users. Third-party services: heavy scripts.The userFrontendBackendDataInfrastructureJob: draws the screen, runs on the deviceJob: makes decisions, runs on company serversJob: stores and finds information and filesJob: the machines and networks under everythingToolsToolsToolsToolsToolsHeavy JavaScriptUnsized imagesSlow API responsesSlow queriesServers far awayThird-partyservicesProducts othercompanies runthat you plug inHeavy scripts
Figure 4. The common causes of a slow page, placed on the four-layer stack at the layer where each one lives. Look at the frontend layer. On many pages it holds the biggest share of the wait, and it runs on the user’s own device.

Third-party scripts deserve a special mention, because they pile up quietly. Analytics, ads, chat, reviews, and A/B testing tools each add their own requests and their own JavaScript. A/B testing means showing two versions of a page to different people to see which works better.

Each tool is added by a different team for a good reason. Together, they can cost more than the page’s own code. Their companies sit outside your stack, but the scripts themselves load and run in the frontend, on the user’s device.

The one thing people get wrong

“It’s the images.” That’s the usual verdict when a page feels slow. Images are easy to see, they’re large, and a designer chose them, so they make a natural suspect. Sometimes they are the problem. But on many modern pages, a breakdown of the wait looks more like the bar below.

One page load split by causeA single bar of 3.0 seconds split into five parts: connecting, 0.4 seconds; the server building the page, 0.6 seconds; getting the code, 0.5 seconds; running the code, 1.1 seconds; and images, 0.4 seconds. Images are tagged as usually blamed. Illustrative numbers.One page load on a mid-range phoneIllustrative numbersUsually blamed3.0 sConnectServerGet codeRun codeImages0.4 s0.6 s0.5 s1.1 s0.4 sSimplified: some of these overlap
Figure 5. Where the wait goes in one load of a typical JavaScript-heavy page on a mid-range phone. Look at the largest slice, the phone running JavaScript, and then at how small the images slice is next to it.

The numbers are illustrative, but the shape is common. Connecting and waiting for the server take real time. The single largest slice is often the phone running JavaScript, work that never shows up as a big file in anyone’s design. Images matter, and making them smaller is worth doing. They’re rarely the whole story.

Each slice has a different fix and a different owner. Connection time falls when servers sit closer to users. Server time falls when the backend team speeds up its slowest work.

On the frontend, code time falls when the frontend ships less JavaScript, or sends parts of it only when a screen needs them. Image time falls with smaller files in modern formats. A design change can help several slices at once, like cutting a widget nobody uses.

This isn’t a new finding. In 2012, the web performance engineer Steve Souders measured top sites and found most of the wait happened on the frontend, not on the server. His rule of thumb put it at 80 to 90 percent. Pages have changed since, but the lesson holds: start by measuring the frontend, on the kind of device your users carry.

That last part matters. Engineers and designers usually work on fast laptops with fast connections, where almost every page feels fine. Browser developer tools can slow the network and the processor down to imitate a mid-range phone. Ask to see your page that way before a launch. It’s the quickest way to see what most people experience, and it turns a vague worry into a specific cause.

Ask an engineer this

“When this page feels slow on a phone, where does the time actually go, and how do we know?”

Ask when someone reports that a page feels slow, or before a redesign of a busy page. You’re hoping for a measurement, not a guess: a waterfall, a Core Web Vitals report, or a recording from a slow phone. From there, find out which of the three kinds of slow they found, and which layer it lives in. If the reply is about images, ask what the rest of the time is spent on. If nobody has measured it, offer to sit with them while they do.

Terms from today

Latency
The delay before data starts to arrive, mostly the time a message takes to travel to a server and back.
Bandwidth
How much data a connection can carry per second, which decides how fast a large file downloads once it starts.
Waterfall
A chart that shows every request in a page load as a bar on a timeline, so you can see which requests wait on others.
Bundle
A JavaScript file built from many source files, which the browser must download and run before the page’s interactive parts work.
Core Web Vitals
Google’s three measures of how a page feels to use: how fast the main content appears, how fast it responds to input, and how much it shifts.
Next

Day 14: Trace your own stack

Follow one Spotify save through the stack and a sequence diagram, then trace a click in a product you work on.

13

Why pages are slow

All 30 days