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
📖 Docs: Open the Network panel
📸 Screenshot:
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:
Click the list.json
row. Check the right-hand tabs:
Note: Reload the page if it does not appear.
📖 Docs: Inspect requests
📸 Screenshot:
Use the clear button to reset the panel, then reload. Watch the same requests appear fresh.
📖 Docs: Clear requests
📸 Screenshot:
Inspect coffee.json
again:
Inspect coffee.json in Network → Headers. Headers are metadata that describe the request and response:
📖 Docs: View headers
📸 Screenshot:
Throttle the network: simulate slower connections (Fast 3G, Slow 3G).
📖 Docs: Throttle requests
📸 Screenshot:
Filter images: see only the coffee photos.
📖 Docs: Filter by resource type
📸 Official screenshot:
Replay requests with fetch in the console: manually trigger the same network request from the browser console.
👉 Try this with the list.json
request to see how you can programmatically make the same API call.
list.json
request row📖 Docs: Copy requests
📸 Screenshot:
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
.