class

HAR::PageTimings

Inherits JSON::Serializable < Reference < Object

This object describes timings for various events (states) fired during the page load. All times are specified in milliseconds.

NOTE: If a time info is not available appropriate field is set to -1.

Depeding on the browser, on_content_load property represents DOMContentLoad event or document.readyState == interactive.

Constructors

new(on_content_load : Float64 | Nil = nil, on_load : Float64 | Nil = nil, comment : Nil | String = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

comment

A comment provided by the user or the application.

Source
comment=(comment : String | Nil)

A comment provided by the user or the application.

Source
on_content_load

Content of the page loaded. Number of milliseconds since page load started (page.startedDateTime). NOTE: Use -1 if the timing does not apply to the current request.

Source
on_content_load=(on_content_load : Float64 | Nil)

Content of the page loaded. Number of milliseconds since page load started (page.startedDateTime). NOTE: Use -1 if the timing does not apply to the current request.

Source
on_load

Page is loaded (onLoad event fired). Number of milliseconds since page load started (page.startedDateTime). NOTE: Use -1 if the timing does not apply to the current request.

Source
on_load=(on_load : Float64 | Nil)

Page is loaded (onLoad event fired). Number of milliseconds since page load started (page.startedDateTime). NOTE: Use -1 if the timing does not apply to the current request.

Source