Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome Developer Tools: How to Read the Network Panel?

Tags:

I am trying to make sense of the Chrome Developer Tools when I run performence tests on my websites. If you select Network on the tools meny it will look like this:

enter image description here

Then if I select the performance file I will have this information:

enter image description here

My question is this:

  1. What is the meaning of DNS Lookup, Connecting, Sending, Waiting and Receving? What is happening between the server, network and browser at each stage?
  2. On the first image, the red line reads "Load event fired" and the blue one reads "DOMContent event fired". What is the meaning of this and why is it the DOMContent event is fired after all the content has been loaded?
like image 587
unitario Avatar asked Aug 23 '12 17:08

unitario


People also ask

How do I use a Network tab in Developer Tools?

Simply go to the page and open the network tab. You can see the network tab by hitting cmd + opt + j on your Mac or ctrl + shift + j in Windows. It will open up the console tab in DevTools by default. Once the console tab is open, simply click on the network tab to make it visible.

What is Network in DevTools?

The Network view allows you to see and analyze the network requests that make up each individual page load within a single user's session. You can use this view to investigate the causes of slow pages and identify performance bugs.


1 Answers

Answering part II:

The Blue line (DOM content loaded event):
It happens when the browser finished parsing the main document.

The Red line (Load event):
It happens when the browser finished retrieving all the resources required by the main document.

After the red line: Here you will see loading of asynchronous and cached resources required by the main document and by other resources.

like image 83
Shadi Namrouti Avatar answered Dec 10 '22 02:12

Shadi Namrouti