Browsers and DevTools
"The Suggest button just spins forever." Asha used to paste that sentence into her assistant and wait. Now she opens the browser's developer tools first. In under a minute they tell her whether the problem is in the page, in the request, or on the server.
The rule
Console for errors, Network for requests — read both before asking for a fix.
Every major browser has built-in DevTools; right-click the page and choose Inspect to open them. Three panels cover most needs:
- Elements — the live HTML and CSS. Click any element to see which rules apply to it and why it looks the way it does.
- Console — error messages from the page's JavaScript, shown in red, often with a file name and line number.
- Network — every request the page makes, with its status code, its response and how long it took.
The status code tells you where to look:
| Code | What it means |
|---|---|
| 2xx, such as 200 | It worked |
| 4xx, such as 400, 401, 404, 429 | The server refused the request: bad input, not allowed, not found, or too many requests |
| 5xx, such as 500, 503 | The server failed while handling the request |
DevTools also has a device toolbar that previews the page at phone sizes, the quickest way to reproduce "it's broken on my phone".