Course contentsShow
← Web Development
Lesson 2197 of 2,98240. Browser DevTools Deep DiveFree lesson

Recording and Filtering Network Activity

Learn to start/stop recording, preserve logs across page loads, and use filters to view specific resource types.

Recording and Filtering Network Activity

You'll learn how to control network recording and focus on specific requests using DevTools filters.

Starting and Stopping Recording

By default, the Network panel starts recording as soon as you open DevTools. The record button (a red circle) in the top-left corner shows recording status—red means active, gray means stopped.

Click the record button to pause recording. This is useful when you want to:

  • Freeze the current request list for analysis
  • Clear out noise before capturing a specific action
  • Reduce DevTools overhead during intensive operations

Pro tip: Recording automatically restarts when you refresh the page unless you explicitly stop it.

Preserving Logs Across Page Loads

Normally, the Network panel clears when you navigate to a new page. Enable "Preserve log" (checkbox near the top) to keep requests from previous pages visible.

This is essential for:

  • Debugging redirects that span multiple pages
  • Tracking requests during form submissions
  • Analyzing multi-step authentication flows

Think of it like keeping a continuous transcript instead of starting fresh with each page turn.

Filtering by Resource Type

The filter toolbar lets you focus on specific request types:

  • All – shows everything
  • Fetch/XHR – AJAX and API calls
  • JS – JavaScript files
  • CSS – stylesheets
  • Img – images
  • Font – web fonts
  • Doc – HTML documents
  • WS – WebSocket connections

You can also use the text filter box to search by name, URL, or even status code. For example, typing status-code:404 shows only failed requests.

Combine filters to narrow down issues quickly—like showing only failed image requests during a specific user action.

Key Takeaway: Master recording controls and filters to cut through network noise and isolate exactly the requests you need to debug efficiently.