Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What determines the color of the request in the Network tab in Chrome Developer Console?

I have a response with status of 200 OK, but it is showing up as red in the list of network requests. I thought it was the status that would determine this but clearly there's something else. What is it?

like image 979
Jer Avatar asked Sep 24 '14 23:09

Jer


People also ask

How do you find a color using inspect?

Open up the DevTools in Chrome and select a color to inspect in the view. To inspect a color, select an element on the page and in the styles pane look for the color property. Next to that color property there should be a small color swatch box. When you click on that, the color palette opens.


2 Answers

enter image description here

This is from the Chromium Source Project: https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/panels/network/NetworkWaterfallColumn.ts;l=138-149?q=waterfall%20color&ss=chromium%2Fchromium%2Fsrc

and

https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/panels/timeline/TimelineUIUtils.ts;l=1662-1675?q=TimelineUIUtils&ss=chromium%2Fchromium%2Fsrc

like image 94
Tushar Khanna Avatar answered Oct 02 '22 04:10

Tushar Khanna


In 2020 (at least in Chrome 80) there is no such color-coding

in the list of network requests

in Chrome Network tab. Items, as expected, red colored for error.

The link from @jaredwilli answer is now deprecated and has no info on request types' colors. Up to date link: https://developers.google.com/web/tools/chrome-devtools/network/reference

But in the settings there is a check box "Color-code resource types". It changes colors of watefall bars (not the colors of items in the list of network requests). And these bars become just a little bit reddish for fonts, and for scripts it's pastel orange now.

Also, for the frames of a WebSocket Connection

Messages are color-coded according to their type:

  • Outgoing text messages are light-green.
  • Incoming text messages are white.
  • WebSocket opcodes are light-yellow.
  • Errors are light-red.

Also, when hovering other requests with <Shift> pressed hovering other requests with <Shift> pressed, green is used for initiators of a request and red for dependencies

like image 39
x00 Avatar answered Oct 02 '22 05:10

x00