Net Panel
From FirebugWiki
(→Options Mini Menu) |
(→Options Mini Menu) |
||
| Line 3: | Line 3: | ||
== Options Mini Menu == | == Options Mini Menu == | ||
| - | Besides toggling the activation of the panel the Options Mini Menu offers | + | Besides toggling the activation of the panel the Options Mini Menu offers following options. |
{| class="wikitable" style="vertical-align:top;" | {| class="wikitable" style="vertical-align:top;" | ||
|- bgcolor=lightgrey | |- bgcolor=lightgrey | ||
! style="width:180px" | Option || Preference || Description | ! style="width:180px" | Option || Preference || Description | ||
| + | |- | ||
| + | | Disable Browser Cache || <code>browser.cache.disk.enable</code> <br/> <code>browser.cache.memory.enable</code>|| Disables/enables browser HTTP cache. | ||
|- | |- | ||
| Show Paint Events || <code>extensions.firebug.netShowPaintEvents</code> || Specifies whether DOM [http://www.softwareishard.com/blog/firebug/watching-mozafterpaint-in-firebug/ paint events] shall be shown as vertical lines inside the Net Panel | | Show Paint Events || <code>extensions.firebug.netShowPaintEvents</code> || Specifies whether DOM [http://www.softwareishard.com/blog/firebug/watching-mozafterpaint-in-firebug/ paint events] shall be shown as vertical lines inside the Net Panel | ||
Revision as of 11:38, 29 June 2010
The main purpose of the Net Panel is to monitor HTTP traffic initiated by a web page and simply present all collected and computed information to the user. Its content is composed of a list of entries where each entry represents one request/response round trip made by the page.
Contents |
Options Mini Menu
Besides toggling the activation of the panel the Options Mini Menu offers following options.
| Option | Preference | Description |
|---|---|---|
| Disable Browser Cache | browser.cache.disk.enable browser.cache.memory.enable | Disables/enables browser HTTP cache. |
| Show Paint Events | extensions.firebug.netShowPaintEvents | Specifies whether DOM paint events shall be shown as vertical lines inside the Net Panel |
| Show BF Cache Responses | extensions.firebug.netShowBFCacheResponses | Specifies whether HTTP responses coming from the BFCache should be displayed. |
Panel Toolbar
Break On XHR
Clicking the "Break On XHR" button enables a listener for XMLHttpRequests. If an XHR is made then, the debugger stops the script execution immediately and jumps to the Script Panel.
Clear
Removes all entries of the list of requests.
Persist
When this option is enabled, the entries of the requests list are not deleted when reloading the page. Instead the are grouped by page request, which means, when reloading the page several times you will get several request trees having the page title as root.
Filters
There are several buttons for filtering the current list of requests for giving a fast overview over the files you want to see. Following there's a list of the currently implemented filters:
| Filter | Description |
|---|---|
| All | Displays all requests |
| HTML | Limits display to HTML files |
| CSS | Limits display to CSS files |
| JS | Limits display to JavaScript files |
| XHR | Limits display to XMLHttpRequests |
| Images | Limits display to image files |
| Flash | Limits display to Flash files |
| Media | Limits display to Media files (*.ogg, *.mpeg, ...) |
Search
You have the possibility to search inside the different requests. Thereby besides the general options for case sensitivity and regular expression search you can optionally also search inside the request bodies.
Request List
The main part of the Net Panel is the Request List. When the Net Panel is activated and a page is loaded it starts filling with all HTTP requests made by a page. Each entry displays basic info about the request and a graphical Timeline that depicts load phases in time. The following is a list of information, that is displayed for each request:
- HTTP request method
- HTTP response code and description
- Requested file name (shortened; hovering it shows the entire URL)
- Domain name from where the response came from
- Size of the response
- Graphical Timeline and load time info
Besides that there is a summary at the bottom of the Request List. This summary contains info about the total number of requests, the total file size and the total page load time.
Request & Response Details
Every request entry can be expanded by clicking on the left hand twisty in order to see additional info. It's important to note that the entry actually represents both: the request sent to the server and also the response coming back. No matter if it comes from the server or the browser cache, one request-response round-trip is represented by one entry in the list. There are several tabs shown for each request. Depending on the request method and requested file type there are additional tabs with further information. Here's a list of the tabs shown for the different requests:
| Tab | Restriction | Description |
|---|---|---|
| Headers | - | Lists the request and response headers of the current request |
| Response | - | Displays the contents of the response unformatted (as they came from the server) |
| Params | GET request | Displays the URL parameters |
| Post | POST request | Displays the POST parameters incl. the source |
| HTML | HTML files | Displays the rendered HTML output |
| JSON | JSON files | Displays the JSON data in a formatted tree structure similar to the DOM Panel |
| XML | XML files | Displays the XML data in a formatted tree structure similar to the HTML Panel |
| Cache | Cached files | Lists cache information to the current request |
There can be also other tabs coming from Firebug extensions. An example is a Cookies tab that shows all sent and received cookies for a request. This tab comes from the Firecookie extension.
Cache Info
Some files are fetched from the browse cache. They can be recognised by the response status "304 Not Modified". The Cache Tab includes the following information:
| Info | Description |
|---|---|
| Last Modified | Last time the cache entry was modified |
| Last Fetched | Last time the cache entry was accessed |
| Expires | Expiration time of the cache entry |
| Data Size | Cache entry data size |
| Fetch Count | Number of times the cache entry has been accessed |
| Device | ID for the device that stores this cache entry |
Timeline
One of the most useful features for debugging page load performance is a request Timeline. The Net Panel uses this graphical representation to show request load in time together with timing data.
Request Timeline
Every request-response round trip is shown as horizontal bar in the Timeline and is composed of several phases, represented by different colors. Hovering a Request Timeline offers more detailed information about the timings of the different phases.
| Value | Description |
|---|---|
| DNS Lookup | DNS resolution time |
| Connection | Elapsed time required to create a TCP connection |
| Queuing | Time spent in a browser queue waiting for a network connection |
| Waiting | Waiting for a response from the server |
| Receiving | Time required to read the entire response from the server (and/or time required to read from cache) |
| 'DOMContentLoaded' (event) | Point in time when DOMContentLoaded event was fired (since the beginning of the request, can be negative if the request has been started after the event) |
| 'load' (event) | Point in time when the page load event was fired (since the beginning of the request, can be negative if the request has been started after the event) |
Waterfall Graph Time Extent
In order to keep the X axis (time) in sensible extent, the waterfall graph breaks the time and starts displaying new requests that start later (in the page life) again from the beginning. In other words, a request, that starts after a predefined period of time (1s by default) since the previous request finished, starts from 0 time of the graph again. This avoids endless extension of the X axis, which would make the graph less readable. There is a preference extensions.firebug.netPhaseInterval allowing you to set the gap in milliseconds, after which the time break should happen. If set to 0, breaking doesn't happen at all.
Context options
If you right-click on a request, the context menu offers you several options to copy data to the clipboard including the location, the request headers, the response headers and the response body (except for binary files). Furthermore you can open the request in a new tab (which keeps the request method) or open the response in a new tab. For CSS files you even have the possibility to open the file in the CSS Panel or inspect it inside the DOM Panel.