Loading

T3 Browser DevTools · Lesson 3

The Network panel

Every request a page makes: reading the table, what the status codes mean, opening one request to read its headers and its answer, finding what makes a page slow or heavy, the cache, and deciding whether a fault lies in the page or on the server.

  • read the Network panel: what each column means, and how to filter it
  • explain the common status codes, and find a missing file in seconds
  • open a request and read its headers, its answer and its timing
  • find what makes a page slow or heavy, and test it on a slow connection
  • decide whether a problem lies in the page or on the server
About 60 minutesChecked against Google Chrome on the laptop (the kit renders every HTML block in it, and the DevTools step describes its panels) 155 (2026-11-06)Play this lesson's games

The back cover

A web page looks like one thing, but it arrives as dozens of separate parcels. There is the page itself, its styles, its scripts, its pictures and its data. When one parcel is missing, late or heavy, the page breaks or crawls, and the screen rarely says which.

These pages show how to read the Network panel's table of requests. They explain the server's status codes, and how to open one request to read its headers and its answer. They find where a slow page loses its time and how the cache saves a second visit. They end with a way to choose the right panel for each problem.

Before you start

The story: The parcel that never came

The Harbour Office's board has lost its map. Where the map should be there is a small broken square, and the heading has lost its colour as well. Your first lens shows a frame in good order, and the diary says only that something failed to load. Corin suggests that the map has been stolen.

Ottilie Sen slides a third lens across the counter, with a fine scale etched along its edge.

"A panel owns almost nothing," she says. "Everything it shows was sent for: the words, the cloth, the pictures. Each parcel has a docket, and each docket says what came back. Read the dockets."

A web page is not one file. It is a list of orders: one for the HTML, then one for each stylesheet, script, picture and font that the HTML names. When one order goes wrong, the page has a hole in it, and neither the Elements panel nor the Console can show you why. This panel can, because it records every order and every answer. It builds on these ideas; each has a tiny example.

What you already knowA tiny exampleWhere it comes back
A browser asks, and a server answers.How the web works: a request and a response.The panel shows one line for each pair.
An address has a path./images/logo.svgThe path is what the server looks up.
A relative path starts from the page.logo.svg beside shop/list.html means /shop/logo.svg.A wrong path is the commonest missing file.
Servers treat capitals as different.Logo.svg is not logo.svg.It works on your laptop, then fails online.
A stylesheet is a file of its own.<link rel="stylesheet" href="style.css">If it never arrives, your rules are not in the Styles tab.
A script can ask for data.fetch("stock.json")Each fetch is one line in the panel.
The Console logs a missing file.A red line with 404.This panel shows which file, and why.
The Command Menu and the Drawer.Ctrl + Shift + P, Esc.They reach the panel's extra tools.

By the end of this lesson you will be able to:

  • read the Network panel: what each column means, and how to filter it;
  • explain the common status codes, and find a missing file in seconds;
  • open one request and read its headers, its answer and its timing;
  • find what makes a page slow or heavy, and test it on a slow connection;
  • decide whether a problem lies in the page or on the server.

How to follow this lesson

The blocks marked "On a real site" name real files, so they have no Run button. The kit served each of them from a real small server, and the requests listed under them are the ones Chrome really made. To try the panel yourself, use this page: open DevTools here, choose the Network panel, and reload.

In one line

A page is many requests, and the Network panel lists every one with its answer; you need the idea of a request and a response, and of a path.

Every parcel the page asked for

At a glance

A courier office keeps a register of every parcel: who sent for it, whether it came, how heavy it was and how long it took. The Network panel is that register for a web page. It lists every request the page makes, with the server's answer to each, in the requests table.

It records only while DevTools is open, so the routine is always the same: open it, choose Network, and reload. Each row gives the name, status, type, who asked, size and time. Buttons and a Filter box cut a hundred rows down, and the line along the bottom gives DOMContentLoaded and Load.

Take a guess: If you open DevTools after a page has loaded, why is the Network panel empty?

A courier office keeps a register: each parcel sent for, who asked, whether it came, how heavy it was, how long it took. The Network panel is that register for a page.

Network panel

A DevTools panel that lists every request the page makes, with the server's answer to each, in a table called the requests table.

request and response

A request is the browser asking a server for one thing at one address. The response is the server's answer: a status, some details, and usually the thing itself.

Here is a small shop page. It looks like one thing, and it is four.

On a real site, with its three files beside it

<!DOCTYPE html>
<link rel="stylesheet" href="style.css">
<h1>Asha Stores</h1>
<img src="logo.svg" alt="Logo">
<script src="app.js"></script>

The Network panel shows

200  document    /
200  stylesheet  /style.css
200  image       /logo.svg
200  script      /app.js

The Console shows

Info     app ready

The kit served those files and recorded four requests: the page, then the stylesheet, the image and the script that the page named. The browser asks for the HTML first, because only by reading it can it learn what else is needed.

Open it first, then reload

The panel records only while DevTools is open. Requests made before you opened it are not there. So the routine is always the same: open DevTools, choose Network, reload the page. Try it now on this page.

An empty panel

An empty Network panel does not mean that nothing was requested. It means nothing was requested since you opened DevTools. Reload.

Reading the table

ColumnWhat it tells you
Namethe file, or the last part of its address
Statusthe server's answer, such as 200 or 404
Typewhat kind of file it is: document, stylesheet, script, image, font
Initiatorwhat asked for it: the HTML (Parser), a script, a redirect, or something else, with a link to the line
Sizehow much travelled over the network: headers and body
Timefrom the request to the last byte of the answer
Waterfalla small timeline, so you can see what ran when

Click a column's heading to sort by it. Right-click any heading to add or hide columns. Sorting by Size puts the heaviest files together; sorting by Time puts the slowest together.

Cutting it down

A real page can make a hundred requests. Above the table is a row of buttons, one for each type, and a Filter box.

To seeDo this
only imagesclick Img
only data fetched by scriptsclick Fetch/XHR
only stylesheets and scriptsclick CSS, then hold Ctrl (Cmd on a Mac) and click JS
files with a word in their addresstype the word in the Filter box
only failurestype status-code:404 in the Filter box
only heavy filestype larger-than:100k
everything except a matchtype your filter, then tick Invert

The line along the bottom

Under the table is a summary: how many requests, how much was transferred, how much that came to once unpacked, and three times. Finish is when the last request ended. DOMContentLoaded, shown in blue, is when the HTML had been read and the tree built. Load, shown in red, is when the page and everything it named had arrived.

On a real site

<!DOCTYPE html>
<script>
  document.addEventListener("DOMContentLoaded", function () { console.log("DOMContentLoaded"); });
  window.addEventListener("load", function () { console.log("load"); });
</script>
<h1>Asha Stores</h1>
<img src="logo.svg" alt="Logo">

The Network panel shows

200  document    /
200  image       /logo.svg

The Console shows

Info     DOMContentLoaded
Info     load

DOMContentLoaded comes first, because the tree is finished before the pictures arrive. A visitor can often read a page well before its Load time.

A memory aid

Open, then reload. Name, status, type, who asked, how heavy, how long.

Worked example 1

A page feels heavy on your phone's data pack. Find the single largest file it downloads.

What we have: a page, and a wish to find its heaviest file

What we need: the name and size of the largest file

The plan: open the panel, reload, and sort the table by size

  1. Open DevTools, choose Network, and reload.
  2. Click the Size heading once or twice, until the largest is at the top.
  3. Read the Name and Type of the top row. It is often an image.
  4. Hold the pointer over that row: the panel shows how long it took, and you can open it to see more.

Sort by Size. The largest file is the top row, with its type beside it, in three clicks.

Check: the status bar's transferred total falls by about that amount if you block the file, as the method section shows.

When you are stuck: the requests table

The table is empty: DevTools was opened after the page loaded. Reload.

Some requests are missing: is a Filter word still there, or a type button pressed? Click All and clear the box.

The list keeps growing: the page is still fetching things; click the record button to stop recording.

Your turn

You open the Network panel, and it is empty. What do you do?Tap to reveal
  1. It records only while open.

Reload the page.

Which column tells you what asked for a file?Tap to reveal
  1. Who started it?

The Initiator column.

Which comes first: DOMContentLoaded or Load?Tap to reveal
  1. The tree is finished before the pictures arrive.

DOMContentLoaded.

Did you know?

Seventy parcels for one page

A page that looks like one thing is many requests. The Web Almanac of 2024 found that the median desktop page makes 71 requests, with 24 JavaScript files, 18 images, 8 CSS files, 4 fonts and 2 HTML files among them. The median mobile page makes 66. So the requests table of an ordinary page has about seventy rows.

Why it fits here: It shows why this topic's filters and sorting matter: an ordinary page fills the table with about seventy rows.

Source: The Web Almanac: Page Weight, 2024

A saved table, cleaned by default

The whole requests table can be saved as one file, a HAR, short for HTTP Archive. It is a JSON object with a particular set of fields, used by several HTTP session tools. Such a file can leak secrets, so Chrome exports a sanitized HAR by default, without the Cookie, Set-Cookie and Authorization headers. A version with the sensitive data must be chosen on purpose.

Why it fits here: Before you send a HAR to anyone for help, keep the sanitized one: cookies and sign-in headers can travel inside the other.

Sources: Chrome for Developers: Network features reference; Wikipedia: HAR (file format)

In one line

The Network panel lists every request while DevTools is open, so open it and reload; read each row as name, status, type, who asked, how heavy and how long, and filter by type, status or size.

What the server answered

At a glance

A parcel office stamps every docket: delivered, moved, no such address, or office closed. A server does the same with a three-digit number, the status code, and its first digit tells you the family.

The first digit says who to blame. A 2xx code means it worked, and a 3xx means look elsewhere or use your copy. A 4xx code means the request was wrong, and a 5xx means the server failed. A 404 row is a gift: it shows the exact address the browser tried.

Take a guess: Which family of status codes blames the server, not your request?

A parcel office stamps every docket: delivered, moved to a new address, no such address, or office closed. A server does the same with a three-digit number, the status code, and its first digit tells you the family.

FamilyMeansCommon codes
2xxit worked200 OK
3xxlook elsewhere, or use your copy301 moved for good, 302 moved for now, 304 not modified: your copy is still good
4xxthe request was wrong: the browser's side401 sign in first, 403 not allowed, 404 nothing at this address
5xxthe server failed: the server's side500 server error, 503 not available for now

A memory aid

2 yes, 3 go there, 4 your mistake, 5 my mistake. The speaker is the server.

The line between 4 and 5 saves hours. With a 4xx, look at what the page asked for: the address, or whether you are signed in. With a 5xx, the page asked properly and the server broke, so no change to your HTML will help.

A missing file

This page names a picture that is not on the server. The page still shows, with a small broken square, and the panel shows why.

On a real site, with no logo.svg on the server

<!DOCTYPE html>
<h1>Asha Stores</h1>
<img src="logo.svg" alt="Logo">

The Network panel shows

200  document    /
404  image       /logo.svg

The Console shows

Error    Failed to load resource: the server responded with a status of 404 (Not Found)

The panel shows that row in red, status 404. The Console logs one red line:

Failed to load resource: the server responded with a status of 404 (Not Found)

The page itself came back 200. A status belongs to one request, not to the whole page, so a page can be 200 with a dozen holes in it.

Try it here

You can make a real 404 on this very page. Open the Network panel, press Esc for the Console in the Drawer, and type fetch("/no-such-file"). A new red row appears, with the status 404, and the Console logs the line above. Nothing is harmed: you asked for an address where there is nothing.

Why a file goes missing

CauseWhat the panel showsFix
a misspelt namestyel.css, 404correct the name
wrong capitalsLogo.svg, 404, though logo.svg existsmatch the capitals exactly
a wrong folder/shop/logo.svg, 404, though it is in /images/correct the path
a file not uploadedthe right name, 404upload it

The Name column shows only the last part of the address. Hold the pointer over a name, or open the row, to see the whole address. When a path is wrong, the whole address shows exactly where the browser looked, and that is usually enough to see the mistake.

Worked example 2

A site works on your laptop, and online its logo is a broken square. The HTML says Logo.svg, and the folder holds logo.svg. Show why, and fix it.

What we have: a broken image online, and a capital letter that differs

What we need: what the server was asked for, and a fix

The plan: read the failed row: it shows the exact name asked for; servers treat capitals as different

  1. Open Network, reload, and find the red row: Logo.svg, 404.
  2. Compare it with the file's real name. They differ by one capital.
  3. Your laptop's file system may ignore capitals, which is why it worked there. Most servers do not.

Wrong capital

<!DOCTYPE html>
<img src="Logo.svg" alt="Logo">

The Network panel shows

200  document    /
404  image       /Logo.svg

The Console shows

Error    Failed to load resource: the server responded with a status of 404 (Not Found)

Fixed

<!DOCTYPE html>
<img src="logo.svg" alt="Logo">

The Network panel shows

200  document    /
200  image       /logo.svg

The capital L. Write the name exactly as the file is named.

Check: the server gave 404 for Logo.svg and 200 for logo.svg.

Worked example 3

A page shows plain black text, as if it had no CSS. The Styles tab shows only the browser's defaults. Your rules are not listed at all. Use the Network panel to find out why.

What we have: rules that are not listed: step 2 of the CSS method

What we need: whether the stylesheet arrived

The plan: filter the table to CSS, and read the status

  1. Open Network, click the CSS button, and reload.
  2. One row: styel.css, 404. The stylesheet never arrived, so no rule in it could reach anything.
  3. Correct the link's href.

Misspelt link

<!DOCTYPE html>
<link rel="stylesheet" href="styel.css">
<h1>Asha Stores</h1>

The Network panel shows

200  document    /
404  stylesheet  /styel.css

The Console shows

Error    Failed to load resource: the server responded with a status of 404 (Not Found)

Fixed

<!DOCTYPE html>
<link rel="stylesheet" href="style.css">
<h1>Asha Stores</h1>

The Network panel shows

200  document    /
200  stylesheet  /style.css

A misspelt href. The Elements panel could only say that the rules were absent; the Network panel says why.

Check: the requests changed from 404 for styel.css to 200 for style.css.

When you are stuck: status codes

A 404: read the whole address in the failed row, and compare it letter by letter with the real path.

A 403 or 401: the file is there, and you are not allowed; are you signed in?

A 5xx: the page asked properly; the fault is on the server.

Your turn

What does a status of 404 mean?Tap to reveal
  1. The speaker is the server.

Nothing at this address.

A row shows 500. Is the fault in the page's request or on the server?Tap to reveal
  1. 5 is my mistake, says the server.

On the server.

The page's own row is 200, and an image's row is 404. Is the page broken?Tap to reveal
  1. A status belongs to one request.

One file failed; the page itself arrived.

Did you know?

Only 100 to 599

A status code is always a three-digit number, and not every three digits will do. The HTTP standard, RFC 9110, says that values outside the range 100 to 599 are invalid, though programs often use 600 to 999 among themselves for problems that are not HTTP's. Within the range, the first digit defines the class, and the last two digits play no part in it.

Why it fits here: It explains this topic's families: every real answer starts with a digit from 1 to 5, and that digit says who to blame.

Source: RFC 9110: HTTP Semantics

No words in HTTP/2

In HTTP/1.1, the first line of an answer carries the code and, after it, a short reason phrase, such as 404 Not Found. HTTP/2 kept only the number. Its first standard, RFC 7540 of May 2015, says that HTTP/2 does not define a way to carry the reason phrase of an HTTP/1.1 status line. So in a script, response.statusText comes back empty for HTTP/2.

Why it fits here: It is why this topic reads the number: the number always travels, while the words may not.

Sources: RFC 9112: HTTP/1.1; RFC 7540: HTTP/2; MDN: Response.statusText

In one line

A status code is the server's answer to one request: 2xx worked, 3xx look elsewhere, 4xx the request was wrong, 5xx the server failed. A 404 row shows the exact address the browser tried.

Opening one request

At a glance

Click a row's name, and a pane opens with everything known about that one request. It is like opening a parcel and reading its label on both sides: what was asked, what came back, and when.

The Headers tab shows the address, the method, the status and the details sent each way. Preview and Response show the answer, and Timing shows where the time went. One rule settles most arguments: if the data is wrong, look at the server; if the data is right, look at your script. And fetch does not fail on a 404, so test res.ok.

Take a guess: If fetch gets a 404 from the server, does its promise fail?

Click a row's name, and a pane opens beside the table with everything known about that one request. It is like opening the parcel and reading its label, both sides.

TabWhat it showsAsk it when
Headersthe address, the method, the status, and the details sent each waywhat exactly was asked, and what came back?
Previewthe answer, formatted: a picture, a page, tidy datawhat did the server send?
Responsethe answer, as plain textwhat were the exact characters?
Initiatorwhat asked for this, and the chain before itwhy was this requested at all?
Timinghow the time was spentwhy was it slow?
Payloadwhat the browser sent with it, such as form datawhat did the form really send?
Cookiesthe cookies sent and receivedis the sign-in cookie going?

Headers: the label on the parcel

Headers are short lines of information sent with a request or a response, each a name and a value. You need not know them all. These are the ones you will read most.

HeaderGoesSaysExample
content-typewith the responsewhat kind of file this istext/css
content-lengthwith the responsehow many bytes1024
cache-controlwith the responsehow long it may be keptno-cache
set-cookiewith the responsea cookie to store
acceptwith the requestwhat the browser can taketext/html
cookiewith the requestthe cookies being sent
user-agentwith the requestwhich browser this is

One header explains a confusing case. A stylesheet can arrive with status 200 and still not work, if the server labels it as anything but text/css. On a page with a doctype, the browser checks the label, and refuses to use the file.

On a real site, with a stylesheet the server labels text/plain

<!DOCTYPE html>
<link rel="stylesheet" href="style.txt">
<h1>Asha Stores</h1>
<script>
  window.addEventListener("load", function () {
    console.log(getComputedStyle(document.querySelector("h1")).color);
  });
</script>

The Network panel shows

200  document    /
200  stylesheet  /style.txt

The Console shows

Info     rgb(0, 0, 0)

The row is 200, and the heading stays black: the page logged the colour, and it is not teal. In the kit's run, Chrome reported no error for this at all, so neither the status nor the Console gives it away. The one clue is the label. Open the request, and its content-type reads text/plain where it should read text/css. A label of text/html was measured to fail in the same way.

Data fetched by a script

Many pages arrive nearly empty, and scripts then ask for the data they show. Each such request appears under the Fetch/XHR button. The Preview tab shows the data as the server sent it, before your script has touched it.

On a real site

<!DOCTYPE html>
<p class="out"></p>
<script>
  fetch("stock.json")
    .then(function (res) { return res.json(); })
    .then(function (data) {
      console.log("rice", data.rice);
      document.querySelector(".out").textContent = data.rice + " bags";
    });
</script>

The Network panel shows

200  document    /
200  fetch       /stock.json

The Console shows

Info     rice 12

Those lines read: ask for stock.json, turn the answer into data, then use it. A later step of this path teaches them properly. Here, all you need is that each fetch is one row, and that its Preview tab shows exactly what came back.

Whose fault is it?

This is the most useful question the panel can answer. A list on the page shows the wrong thing. Is the fault in the page or on the server? Open the request and look.

The Response tab showsSo the fault isNext
the wrong dataon the server, or in the requestcheck the address and payload, then the server
the right datain your scriptuse the Console and Sources panels
an error page, not datathe request failedread the status

A memory aid

Right data, wrong page: your script. Wrong data: the server.

A trap: a failed fetch does not fail

Here is something that surprises everyone. To fetch, a 404 is a perfectly good answer: it asked, and the server replied. So the code carries on, as if all were well.

On a real site, with no stock.json on the server

<!DOCTYPE html>
<script>
  fetch("stock.json").then(function (res) {
    console.log("status", res.status, "ok", res.ok);
  });
</script>

The Network panel shows

200  document    /
404  fetch       /stock.json

The Console shows

Error    Failed to load resource: the server responded with a status of 404 (Not Found)
Info     status 404 ok false

Then the script tries to read the answer as data, and the answer is an error page. On most sites, an error page is HTML. Reading HTML as data gives one of the most searched messages on the web:

try {
  JSON.parse("<!DOCTYPE html><html>");
} catch (e) {
  console.log(e.name + ": " + e.message);
}
SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

When you see Unexpected token '<', do not hunt for a bad bracket in your code. It means "I expected data and got a web page". Open the Network panel, find the request, and read its status.

Worked example 4

A stock list on a page stays empty, and the Console says Unexpected token 'N', "Not found" is not valid JSON. Find the real cause.

What we have: an empty list, and an error about reading data

What we need: the request that failed, and how to stop the confusing message

The plan: the message means that the answer was not data; go to the Network panel and read the request

  1. Open Network, click Fetch/XHR, and reload. One row: stock.json, 404.
  2. Open its Response tab. It reads Not found: the server's error text, which the script tried to read as data.
  3. Correct the address, and make the script test res.ok first, so that any later failure gives a plain message.

Before: on a real site, with no stock.json

<!DOCTYPE html>
<script>
  fetch("stock.json")
    .then(function (res) { return res.json(); })
    .then(function (data) { console.log(data); })
    .catch(function (e) { console.log(e.name, e.message); });
</script>

The Network panel shows

200  document    /
404  fetch       /stock.json

The Console shows

Error    Failed to load resource: the server responded with a status of 404 (Not Found)
Info     SyntaxError Unexpected token 'N', "Not found" is not valid JSON

After: a plain message

<!DOCTYPE html>
<script>
  fetch("stock.json").then(function (res) {
    if (!res.ok) {
      console.log("Could not load the stock list: " + res.status);
      return;
    }
    return res.json();
  });
</script>

The Network panel shows

200  document    /
404  fetch       /stock.json

The Console shows

Error    Failed to load resource: the server responded with a status of 404 (Not Found)
Info     Could not load the stock list: 404

The address was wrong, and the JSON message was only the result. Test res.ok, so that a failure says what it is.

Check: the kit's run gave the SyntaxError before the change, and the plain message after it.

When you are stuck: one request

A data list is wrong: read the Preview tab first, to learn which side is at fault.

Unexpected token '<': the server sent a web page; read the status of that request.

CSS arrives with status 200 and does nothing: read its content-type in the Headers tab.

Your turn

Which tab shows the answer formatted, ready to read?Tap to reveal
  1. A look ahead.

The Preview tab.

The Response tab holds the right data, and the page shows the wrong thing. Where is the fault?Tap to reveal
  1. Right data, wrong page.

In your script.

fetch gets a 404. Does the promise fail?Tap to reveal
  1. To fetch, it is an answer.

No: test res.ok yourself.

Did you know?

Misspelt in the standard

One header is spelt wrongly, and has stayed that way. The field that tells a server which page an address came from is called Referer, with one r too few. The HTTP standard, RFC 9110, writes it as "Referer" [sic] and admits that the field name is misspelled. The spelling came from the original proposal by Phillip Hallam-Baker, and it was set in stone by May 1996, when it entered RFC 1945.

Why it fits here: In the Headers tab you will meet referer spelt this way; it is the standard's spelling, not a typing slip of the site.

Sources: RFC 9110: HTTP Semantics; Wikipedia: HTTP referer

Small letters in HTTP/2

Header names in DevTools often appear in small letters, such as content-type, and the standards explain why. RFC 9110 says that field names are case-insensitive, so Content-Type and content-type name the same header. RFC 9113, the standard for HTTP/2, goes further: field names must be converted to lowercase when an HTTP/2 message is built. So a site served over HTTP/2 shows them all in small letters.

Why it fits here: When you read or search the Headers tab, the case of a name does not matter: Content-Type and content-type are one header.

Sources: RFC 9110: HTTP Semantics; RFC 9113: HTTP/2

XHR, a name older than its use

The XHR in the Fetch/XHR filter is XMLHttpRequest, a JavaScript API to create HTTP requests. Despite its name, it can retrieve any type of data, not just XML. Its own standard records that it was first defined as part of the WHATWG's HTML work, based on Microsoft's implementation many years before, and that it moved to the W3C in 2006. The newer Fetch API is a more powerful and flexible replacement for it.

Why it fits here: It explains the filter's name: Fetch/XHR holds both ways that scripts ask for data, the newer and the older.

Sources: MDN Glossary: XHR (XMLHttpRequest); MDN: XMLHttpRequest; XMLHttpRequest Standard; MDN: Fetch API

In one line

Open a request to read its headers, its answer and its timing. If the data is wrong, the fault is on the server's side; if the data is right, it is in your script. A 404 does not make fetch fail, so test res.ok.

Slow and heavy

At a glance

A page can be correct and still be a bad page, because it takes eleven seconds to appear on a bus in the rain. In India most visitors arrive on a phone, on a mobile connection and a limited data pack. So speed and weight are not small matters.

The Waterfall draws each request as a bar on a shared timeline, and the Timing tab splits one request into phases. The rule to remember: a long wait is the server, a long download is the file. Throttling makes the browser act like a slower connection, and Disable cache shows what a first visit costs.

Take a guess: In the Timing tab, a long wait and then a quick download point to what?

A page can be correct and still be a bad page, because it takes eleven seconds to appear on a bus in the rain. The panel measures this too. In India most visitors reach you on a phone, on a mobile connection, on a limited data pack, so speed and weight are not small matters.

The Waterfall

The last column draws each request as a bar on a shared timeline. Bars that start together ran together; a bar that starts where another ends had to wait for it.

The Waterfall showsIt means
many bars starting togetherthe browser is fetching side by side, which is good
a staircase, each bar starting as the last endseach file was found only after the one before it; a chain to shorten
one very long barone slow or heavy file; open it and read the Timing tab
a late cluster of barsscripts asking for more after the page has loaded

Where the time went

Open a request and choose the Timing tab. It splits the time into phases, and each phase blames something different.

PhaseWhat is happeningIf it is long
Queueingwaiting its turn in the browsertoo many requests at once
Stalledwaiting after the connection started, for the same reasonsthe same
DNS Lookupfinding the server's addressa new domain; use fewer of them
Initial connectionsetting up the secure connectiona new connection; reuse one
Request sentsending the requestrarely long
Waiting (TTFB)waiting for the first byte of the answerthe server is slow
Content Downloadreceiving the answerthe file is large, or the connection is slow

TTFB stands for Time To First Byte. The last two rows are the ones to learn. A long wait with a quick download is a slow server, and no image work will help. A short wait with a long download is a big file on a thin connection, and the server is innocent.

A memory aid

Long wait: the server. Long download: the file.

Testing on a slow connection

Your laptop on good Wi-Fi is not your visitor. At the top of the panel is a throttling drop-down, which makes the browser behave as if it were on a slower connection: Fast 4G, Slow 4G, 3G, or Offline. Choose one, reload, and watch the page build, as your visitor sees it.

Throttling left on

Throttling stays on while DevTools is open. If every site suddenly feels slow, look for a warning mark beside the Network tab, and set it back to No throttling.

The size column

Servers usually squeeze text files as they send them, so the size that travels is smaller than the file. In the panel's settings, tick Big request rows, and the Size column shows two numbers: the size sent above, and the size unpacked below. A 136 KB page may travel as 44 KB. Pictures are already squeezed, and they gain almost nothing, which is why large images are the usual cause of a heavy page.

The cache: the browser's own shelf

A browser keeps copies of files, so that a second visit need not fetch everything again. That store is the cache. The panel shows how each file was served. Here is one page visited twice, on a server that asks the browser to check before reusing a copy.

On a real site, visited twice

<!DOCTYPE html>
<link rel="stylesheet" href="style.css">
<h1>Asha Stores</h1>
<img src="logo.svg" alt="Logo">

The Network panel shows

First visit
200  document    /
200  stylesheet  /style.css
200  image       /logo.svg
Second visit
200  document    /
304  stylesheet  /style.css
304  image       /logo.svg

On the second visit, the browser asked "has this changed?", the server said 304, and no file travelled. That is what 304 means: use your copy. The Size column may also show (memory cache) or (disk cache): the browser did not even ask.

Size column or statusWhat happenedBytes sent
a size, status 200the file travelledall of it
a small size, status 304the browser asked, and its copy was still goodonly headers
(memory cache) or (disk cache)the browser used its copy without askingnone

When your change does not show

You change your CSS, reload, and nothing happens. Often the browser is using its copy. To be sure, tick Disable cache at the top of the panel. While DevTools is open, the browser ignores its cache, so each reload is like a first visit. It is also the honest way to measure a new visitor's experience.

To do thisDo this
reload, ignoring copies, onceCtrl + Shift + R (Cmd + Shift + R on a Mac)
ignore copies all the timetick Disable cache, and keep DevTools open
clear them and reloadwith DevTools open, long-press the reload button, then Empty Cache And Hard Reload

Worked example 5

A shop's home page takes 22 seconds to load on a slow connection. The Waterfall shows one very long bar: a 4 MB photo. On a connection of 1.6 megabits a second, how long does that photo alone take, and how much would a 100 KB version take?

What we have: a 4 MB photo, a connection of 1.6 megabits a second

What we need: the time for each size

The plan: a byte is 8 bits, so turn the size into bits and divide by the speed

  1. 4 MB is 4 × 8 = 32 megabits.
  2. 32 ÷ 1.6 = 20 seconds, nearly all of the 22.
  3. A 100 KB version is 100 × 8 = 800 kilobits, and 1.6 megabits is 1600 kilobits: 800 ÷ 1600 = 0.5 seconds.

20 seconds, against half a second. One image is nearly the whole wait. Shrink it, and use the srcset of the responsive design lesson, so that phones get a small file.

Check: 4 MB is 40 times 100 KB, and 20 seconds is 40 times 0.5 seconds.

Worked example 6

You changed your stylesheet and uploaded it, and visitors still see the old look, though your own screen is right. The page always asks for style.css. How can you make sure that everyone gets the new file?

What we have: an old file held in visitors' caches

What we need: a way to make the browser fetch the new file

The plan: a cached copy is found by its address, so a new address is a new file

  1. Each browser's copy is filed under the address style.css.
  2. Give the new file a new name, style.v2.css, and change the link. To the browser, that is a file it has never seen.
  3. This is what site build tools do by themselves: they put a code in the file's name that changes when the content does.

On a real site, with the new name

<!DOCTYPE html>
<link rel="stylesheet" href="style.v2.css">
<h1>Asha Stores</h1>

The Network panel shows

200  document    /
200  stylesheet  /style.v2.css

Change the file's name. A new address has no old copy behind it.

Check: the row for style.v2.css is a fresh 200, not a 304.

When you are stuck: speed and caching

A slow file: open the Timing tab, and compare Waiting with Content Download.

A change that does not show: tick Disable cache and reload.

Everything is slow: is throttling still on? Is Disable cache still ticked?

Your turn

Waiting (TTFB) is 3 seconds, and Content Download is 10 milliseconds. What is slow?Tap to reveal
  1. Long wait.

The server.

What does a status of 304 tell the browser?Tap to reveal
  1. Not modified.

Use your copy: the file has not changed.

A file is 2 MB. How many megabits is that?Tap to reveal
  1. 8 bits in a byte.

16 megabits.

Did you know?

Pages four times heavier

Pages keep getting heavier. The Web Almanac of 2024 measured the median mobile page at 505 KB in October 2014, and at 2311 KB in October 2024, more than four times as much. The median desktop page grew from 1208 KB to 2652 KB over the same years. On a limited data pack, every one of those kilobytes is paid for.

Why it fits here: It is why the Size column matters: a page's weight is a cost that every visitor on mobile data pays.

Source: The Web Almanac: Page Weight, 2024

The Performance Golden Rule

Most of a visitor's waiting happens after the server answers. Steve Souders called this the Performance Golden Rule: 80 to 90% of the end-user response time is spent on the frontend. He counted as backend the time for the server to send the first byte back, and as frontend everything else, downloading every file the page refers to included. Checking the top 10 websites in 2012, he found that the frontend took 76% on average.

Why it fits here: In the Timing tab, Waiting (TTFB) is Souders' backend; the downloads after it are the frontend, where most of the time usually goes.

Source: Steve Souders: the Performance Golden Rule

In one line

The Waterfall shows what ran when, and the Timing tab says why: a long wait is the server, a long download is the file. Throttling shows a visitor's connection, and Disable cache shows a first visit.

Which panel, which question

At a glance

Three lenses are now on your bench, and each answers its own question. Elements is for how it looks, the Console for how it behaves, and Network for what arrived. Most real problems pass through all three, so the first skill is choosing where to start.

Two more tools help. Preserve log keeps the requests when a page moves on, such as after a form is sent. Request blocking makes one file fail on purpose, so that you can see how your page copes. A good page expects requests to fail, and says so kindly.

Take a guess: Which panel do you open first when a page shows no data at all?

Three lenses are now on your bench, and each answers its own question. Most real problems pass through all three.

The problemStart inLook for
it looks wrongElementscrossed-out rules, sizes
it does not workConsolethe first red line
something is missingNetworkred rows: 404, or a failed request
there is no dataNetwork, Fetch/XHRthe status, then the Preview tab
the data is wrongNetwork, Previewright data means your script; wrong data means the server
it is slowNetwork, sorted by Timethe Waterfall, then the Timing tab
it uses too much dataNetwork, sorted by Sizethe largest rows, usually images
it is fine for me, but not for themNetworktick Disable cache, try a slow connection

Two more tools

Preserve log keeps the table when the page moves on. A form that submits and goes to a new page takes its requests with it, unless this box at the top of the panel is ticked. Tick it, send the form, and open the request's Payload tab to see exactly what was sent.

Request blocking lets you fail a file on purpose. Press Ctrl + Shift + P, type block, and choose Show Request Blocking. Add a pattern such as *.woff2, and reload. Now you can see how your page behaves when its fonts never arrive, which is the question a careful builder asks of every part. It is also how you measure a file's cost: block it, reload, and compare the totals in the status bar.

Sharing a saved log

The panel can save its table as a HAR file, to send to someone. A log of real requests can hold private details such as cookies and sign-in tokens. Chrome leaves the most sensitive ones out by default, and even so, send one only to someone you trust.

A page that handles failure

A good page expects requests to fail, because on a moving train many will. It says what happened, in words a visitor can use.

Worked example 7

A stock list comes from stock.json. On a bad connection the request fails, and the visitor sees an empty space. Make the page say something useful, and test it.

What we have: a fetch that may fail, and an empty space

What we need: a plain message for the visitor

The plan: test res.ok, and write a message into the page; then test by making the file fail

  1. After the fetch, test res.ok. If it is false, write a message into the page.
  2. A connection that drops entirely makes the fetch fail outright, so add a .catch with the same message.
  3. Test it: block stock.json in Request Blocking, or choose Offline, and reload.

With the file in place

<!DOCTYPE html>
<p class="out"></p>
<script>
  function show(text) {
    document.querySelector(".out").textContent = text;
    console.log(text);
  }
  fetch("stock.json")
    .then(function (res) {
      if (!res.ok) throw new Error("status " + res.status);
      return res.json();
    })
    .then(function (data) { show(data.rice + " bags of rice"); })
    .catch(function () { show("Stock could not be loaded. Please try again."); });
</script>

The Network panel shows

200  document    /
200  fetch       /stock.json

The Console shows

Info     12 bags of rice

With the file gone

<!DOCTYPE html>
<p class="out"></p>
<script>
  function show(text) {
    document.querySelector(".out").textContent = text;
    console.log(text);
  }
  fetch("stock.json")
    .then(function (res) {
      if (!res.ok) throw new Error("status " + res.status);
      return res.json();
    })
    .then(function (data) { show(data.rice + " bags of rice"); })
    .catch(function () { show("Stock could not be loaded. Please try again."); });
</script>

The Network panel shows

200  document    /
404  fetch       /stock.json

The Console shows

Error    Failed to load resource: the server responded with a status of 404 (Not Found)
Info     Stock could not be loaded. Please try again.

Test res.ok, and catch failures. The visitor now reads a sentence, not an empty space.

Check: the same page logged 12 bags of rice with the file, and the message without it.

Worked example 8

A sign-in form sends the visitor to a new page, and the sign-in fails. The Network panel is empty by the time you look. How do you see what the form sent?

What we have: a form that moves on, taking the table with it

What we need: the data the browser really sent

The plan: keep the table across the move, then read the request's payload

  1. Tick Preserve log at the top of the panel.
  2. Send the form again. The rows stay as the page moves on.
  3. Find the request with the method POST, and open its Payload tab. It lists each field and its value, so a field with a wrong name shows at once.

Preserve log, then the Payload tab. It shows what was sent, not what you meant to send.

Check: the field names in the Payload tab are the name attributes in your form, which you can compare one by one.

When you are stuck: choosing a panel

Not sure where to start: open the Console first; a red line often names the panel to go to next.

A request is missing from the list: is Preserve log off, or was it made before DevTools opened?

You cannot tell whose fault it is: read the Preview tab of the request.

Your turn

Which box keeps the table when a page moves on?Tap to reveal
  1. A box to tick.

Preserve log.

How can you test a page without its fonts?Tap to reveal
  1. Fail a file on purpose.

Request blocking.

Why be careful about sending someone a saved network log?Tap to reveal
  1. What travels with requests?

It can hold private details such as cookies.

Did you know?

The Monkey, 1983

Making things fail on purpose is an old trick. While the first Macintosh was being built, Steve Capps wrote a testing tool he called The Monkey. It was a small desk accessory that fed random events to the current program, so the Macintosh seemed to be worked by an incredibly fast, somewhat angry monkey, banging at the mouse and keyboard. Andy Hertzfeld tells the story, dated October 1983.

Why it fits here: Request blocking is the same idea, aimed at one file: break it on purpose, and watch what your page does.

Source: Folklore.org: Monkey Lives

Chaos Monkey

Netflix took the monkey to its servers. In 2011, while moving Netflix to the cloud, Nora Jones, Casey Rosenthal and Greg Orzell set up a tool that caused breakdowns in the production environment that customers used. Chaos Monkey, invented in 2011, randomly terminates virtual machine instances and containers. Its makers explain why: exposing engineers to failures more often pushes them to build services that survive them.

Why it fits here: A good page is built the same way: expect requests to fail, and test that the page still tells the reader something useful.

Sources: Wikipedia: Chaos engineering; Netflix on GitHub: Chaos Monkey

In one line

Elements for looks, Console for behaviour, Network for what arrived; Preserve log keeps requests across a move, request blocking fails a file on purpose, and a good page expects requests to fail.

Where it is used

Any time a page and a server are talking, this is where you listen.

What you learnedWhere it is usedA real example
sorting by Sizemaking pages lighterfinding the 4 MB banner on a shop's home page
status codesevery failed pageseeing that a shop's API gives 500 only on Sundays
the Preview tabpages that show server dataproving that the wrong price came from the server
the Timing tabslow pagesshowing that the wait is the database, not the images
throttlingtesting for real visitorswatching a page build on Slow 4G
Disable cachedaily workseeing your change at once as you build a site
Preserve log and Payloadforms and sign-inreading what a payment form really sent
request blockingtesting failurechecking that a shop still sells if its reviews fail to load

Mistakes and debugging

These are the Network slips everyone makes.

1. Opening the panel after the page has loaded

The table is empty, or has only the latest requests. The fix: open it, then reload.

2. A filter left on

A word in the Filter box, or a type button pressed yesterday, hides most of the table. The fix: click All, and clear the box.

3. Throttling or Disable cache left on

Sites feel slow, or a real visitor's cached speed is never seen. The fix: set them back when you have finished. Both act only while DevTools is open.

4. Taking 200 to mean all is well

A 200 says that the server answered. It does not say that the answer is right. A server can send an error message with status 200, and a stylesheet can arrive with the wrong label. The fix: read the Preview tab.

5. Blaming the bracket

Unexpected token '<' sends people hunting through their code for a typing slip. It nearly always means that a web page came back where data was expected. The fix: find the request and read its status.

6. Testing only on your own connection

A page that loads in one second on your Wi-Fi may take twenty on a bus. The fix: test on Slow 4G, with Disable cache on, at least once before a page goes out.

7. Changing the file, and not the fault

You work on the HTML to cure a 500. The fix: read the first digit: a 5 means that the server failed, whatever your page does.

The debugging corner: search everything

Press Ctrl + F in the Network panel to search across all requests: their addresses, their headers and their answers. Lost a value, and want to know which request brought it? Search for it. Hold Shift and move the pointer over a row, and the rows that caused it turn green, and the ones it caused turn red.

Quick card

The lesson on one card.

Every kind of row in the lesson, on a real site, visited twice

<!DOCTYPE html>
<link rel="stylesheet" href="style.css">
<h1>Asha Stores</h1>
<img src="Logo.svg" alt="Logo">
<p class="out"></p>
<script>
  fetch("stock.json")
    .then(function (res) { return res.json(); })
    .then(function (data) { console.log("rice", data.rice); });
</script>

The Network panel shows

First visit
200  document    /
200  stylesheet  /style.css
404  image       /Logo.svg
200  fetch       /stock.json
Second visit
200  document    /
304  stylesheet  /style.css
404  image       /Logo.svg
200  fetch       /stock.json
To do thisDo this
recordopen the panel, then reload
see one kindthe buttons: Img, CSS, JS, Fetch/XHR
see failuresstatus-code:404 in the Filter box
see heavy filessort by Size, or larger-than:100k
see what came backopen a row, then Preview or Response
see where the time wentopen a row, then Timing
see what was sentopen a row, then Payload
test a slow connectionthe throttling drop-down
ignore the cachetick Disable cache
keep rows across pagestick Preserve log
fail a file on purposethe Command Menu, Show Request Blocking
CodeMeans
200it worked
301, 302moved
304use your copy
401, 403sign in, or not allowed
404nothing at this address
500, 503the server failed

And the rule of the third lens: a page owns almost nothing, so read the dockets.

The story: Dockets

Through the new lens you watch the panel send for its parcels, one line for each, with how long each one took. Most came back marked 200. Two came back marked 404: nothing at that address. The docket says Map.svg, and the harbour's file is called map.svg.

You correct one capital letter, and the map arrives, with the colours behind it. But one parcel, a photograph of the harbour, took eleven seconds and weighs more than all the others together.

"That one is not broken," Ottilie says. "It is only rude."

Reagents gathered: Network panel, status code, 404, Waterfall, Disable cache, throttling.

Sources

  • Chrome DevTools documentation (Page content CC BY 4.0, code samples Apache 2.0 (the footer of its pages, read 2026-11-06); reused with credit)
  • MDN Web Docs (Prose CC BY-SA 2.5 or later; code samples added since 2010-08-20 CC0 (its licensing page, read 2026-10-26); reused with credit)