Analyzing loading, script execution, and rendering times

The Timeline panel can be used to gather information that helps you analyze browser activity and webpage loading times.

You can use the Timeline panel to analyze the time it takes to complete the different activities that the browser engine must perform to completely load and render your webpage. You can also contrain the view of the timeline and also filter events to better analyze your app's performance.

The Timeline panel

Initially, the panel displays no information, so you must click the Record button in the status bar to allow Web Inspector to record the browser engine activity.

As it records browser engine activity, the Record button turns red and Web Inspector adds data to the Timeline panel.

Figure 1. The Web Inspector Timeline panel

Note that all browser engine activity pauses when the device is locked or the browser or HTML5 application is minimized. In order for Web Inspector to record any activity, the browser or HTML5 application must be the active application and the device or simulator screen mustn't be locked.

The Timeline panel is divided into two panes:

Constrain view to a specific time span

You can constrain the time span shown in the timeline. In the top pane of the Timeline panel, the portion of time displayed in the lower pane is represented by a white background. Two gray slider handles at the top left and right edges of this white background allow you to increase or decrease the selected timespan displayed in the timeline.
  1. Click the Timeline icon on the toolbar to display the Timeline panel.
  2. If necessary, record the browser engine activity to generate timeline data.
  3. In the top pane of the Timeline panel, click and drag a gray slider handle to increase or decrease the time span.
Figure 2. Changing the timespan on the Timeline panel

Filter the timeline events

By default, the Timeline panel shows all events in the table. The status bar at the bottom of the panel contains check boxes that allow you to show and hide events based on type.
  1. If necessary, record the browser engine activity to generate timeline data.
  2. In the status bar at the bottom of the Timeline panel, deselect the event types you want to remove from the timeline.