codex-lv2-may-2025

☕ Lesson 4 — The Network Tab (Coffee Shop Demo)

Tags: #lesson #level2 #devtools Goal: Learn to use the Network tab to see requests and responses in action. Tools: Chrome DevTools (Network tab), Coffee Cart Demo

🔗 Source Material: Chrome DevTools — Network Tab Overview


Step 1 — Open the Network Panel

📖 Docs: Open the Network panel 📸 Screenshot: Basic Network panel Screenshot


Step 2 — Use Filters

The Network panel shows everything (HTML, CSS, images, scripts). Use filters at the top to reduce clutter:

👉 Try filtering to XHR to see the coffee.json request.

📖 Docs: Filter requests 📸 Screenshot: XHR filter


Step 3 — Inspect a Request

Click the list.json row. Check the right-hand tabs:

Note: Reload the page if it does not appear.

📖 Docs: Inspect requests 📸 Screenshot: Preview JSON


Step 4 — Clear and Reload

Use the clear button to reset the panel, then reload. Watch the same requests appear fresh.

📖 Docs: Clear requests 📸 Screenshot: Clear network


Step 5 — Check HTTP Headers

Inspect coffee.json again:

Inspect coffee.json in Network → Headers. Headers are metadata that describe the request and response:

📖 Docs: View headers 📸 Screenshot: Headers panel


Step 6 — Advanced Features


Wrap-Up

In this official Coffee Shop demo, you learned how to:

🔗 Full guide: Network Tab Overview (Chrome Docs)


👉 Next: You’ll apply this exact process in Lesson 5, where each city button in your local-weather project will trigger a request you can inspect in the Network tab, just like coffee.json.


🔗 Navigation