Table of Contents

Class PerformanceTiming

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
IMPORTANT
Deprecated
WARNING
This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
[Value("PerformanceTiming")]
public class PerformanceTiming
Inheritance
PerformanceTiming
Inherited Members

Remarks

The PerformanceTiming interface is a legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the Timing property.

-The Timing property that creates such an object.
-PerformanceNavigationTiming (part of Navigation Timing Level 2) that has superseded this API.

See also on MDN

Constructors

PerformanceTiming()

public PerformanceTiming()

Properties

ConnectEnd

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("connectEnd")]
public ulong ConnectEnd { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.connectEnd
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, where the connection is opened network. If the
transport layer reports an error and the connection establishment is started again, the
last connection establishment end time is given. If a persistent connection is used, the
value will be the same as FetchStart. A connection is
considered as opened when all secure connection handshake, or SOCKS authentication, is
terminated.

-The PerformanceTiming interface it belongs to.

See also on MDN

ConnectStart

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("connectStart")]
public ulong ConnectStart { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.connectStart
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, where the request to open a connection is sent to
the network. If the transport layer reports an error and the connection establishment is
started again, the last connection establishment start time is given. If a persistent
connection is used, the value will be the same as
FetchStart.

-The PerformanceTiming interface it belongs to.

See also on MDN

DomComplete

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("domComplete")]
public ulong DomComplete { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.domComplete
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, when the parser finished its work on the main
document, that is when its ReadyState changes to
'complete' and the corresponding Documentreadystatechange event is
thrown.

-The PerformanceTiming interface it belongs to.

See also on MDN

DomContentLoadedEventEnd

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("domContentLoadedEventEnd")]
public ulong DomContentLoadedEventEnd { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.domContentLoadedEventEnd
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, right after all the scripts that need to be
executed as soon as possible, in order or not, has been executed.

-The PerformanceTiming interface it belongs to.

See also on MDN

DomContentLoadedEventStart

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("domContentLoadedEventStart")]
public ulong DomContentLoadedEventStart { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.domContentLoadedEventStart
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, right before the parser sent the
DocumentDOMContentLoaded event, that is right after all the scripts that need to be
executed right after parsing has been executed.

-The PerformanceTiming interface it belongs to.

See also on MDN

DomInteractive

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("domInteractive")]
public ulong DomInteractive { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.domInteractive
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, when the parser finished its work on the main
document, that is when its ReadyState changes to
'interactive' and the corresponding Documentreadystatechange event is
thrown.

This property can be used to measure the speed of loading websites that users
feels. Nevertheless there are a few caveats that happens if scripts are
blocking rendering and not loaded asynchronously or with custom Web fonts. Check if you are in one of these cases before using this property as a proxy for the
user experience of a website's speed of loading.

-The PerformanceTiming interface it belongs to.
-The article "domInteractive: is it? really?" explaining when you can use this property as a proxy for the
user experience of loading a website.

See also on MDN

DomLoading

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("domLoading")]
public ulong DomLoading { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.domLoading
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, when the parser started its work, that is when its
ReadyState changes to 'loading' and the
corresponding Documentreadystatechange event is thrown.

-The PerformanceTiming interface it belongs to.

See also on MDN

DomainLookupEnd

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("domainLookupEnd")]
public ulong DomainLookupEnd { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.domainLookupEnd
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, where the domain lookup is finished. If a
persistent connection is used, or the information is stored in a cache or a local
resource, the value will be the same as FetchStart.

-The PerformanceTiming interface it belongs to.

See also on MDN

DomainLookupStart

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("domainLookupStart")]
public ulong DomainLookupStart { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.domainLookupStart
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, where the domain lookup starts. If a persistent
connection is used, or the information is stored in a cache or a local resource, the
value will be the same as FetchStart.

-The PerformanceTiming interface it belongs to.

See also on MDN

FetchStart

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("fetchStart")]
public ulong FetchStart { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.fetchStart
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, the browser is ready to fetch the document using
an HTTP request. This moment is before the check to any application cache.

-The PerformanceTiming interface it belongs to.

See also on MDN

LoadEventEnd

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface's LoadEventEnd read-only property instead.
[Value("loadEventEnd")]
public ulong LoadEventEnd { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.loadEventEnd
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, when the Windowload event handler
terminated, that is when the load event is completed. If this event has not yet been
sent, or is not yet completed, it returns 0.

-The PerformanceTiming interface it belongs to.

See also on MDN

LoadEventStart

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface's LoadEventStart read-only property instead.
[Value("loadEventStart")]
public ulong LoadEventStart { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.loadEventStart
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, when the Windowload event was sent for the
current document. If this event has not yet been sent, it returns 0.

-The PerformanceTiming interface it belongs to.

See also on MDN

NavigationStart

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification.
Please use the PerformanceNavigationTiming interface instead.
[Value("navigationStart")]
public ulong NavigationStart { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.navigationStart
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, right after the prompt for unload terminates on
the previous document in the same browsing context. If there is no previous document,
this value will be the same as FetchStart.

-The PerformanceTiming interface it belongs to.

See also on MDN

RedirectEnd

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("redirectEnd")]
public ulong RedirectEnd { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.redirectEnd
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, the last HTTP redirect is completed, that is when
the last byte of the HTTP response has been received. If there is no redirect, or if one
of the redirect is not of the same origin, the value returned is 0.

-The Performance interface it belongs to.

See also on MDN

RedirectStart

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("redirectStart")]
public ulong RedirectStart { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.redirectStart
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, the first HTTP redirect starts. If there is no
redirect, or if one of the redirect is not of the same origin, the value returned is
0.

-The PerformanceTiming interface it belongs to.

See also on MDN

RequestStart

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("requestStart")]
public ulong RequestStart { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.requestStart
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, when the browser sent the request to obtain the
actual document, from the server or from a cache. If the transport layer fails after the
start of the request and the connection is reopened, this property will be set to the
time corresponding to the new request.

-The PerformanceTiming interface it belongs to.

See also on MDN

ResponseEnd

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("responseEnd")]
public ulong ResponseEnd { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.responseEnd
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, when the browser received the last byte of the
response, or when the connection is closed if this happened first, from the server from
a cache or from a local resource.

-The PerformanceTiming interface it belongs to.

See also on MDN

ResponseStart

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("responseStart")]
public ulong ResponseStart { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.responseStart
read-only property returns an unsigned long long representing the moment in
time (in milliseconds since the UNIX epoch) when the browser received the first byte of
the response from the server, cache, or local resource.

-The PerformanceTiming interface it belongs to.

See also on MDN

SecureConnectionStart

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
[Value("secureConnectionStart")]
public ulong SecureConnectionStart { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.secureConnectionStart
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, where the secure connection handshake starts. If
no such connection is requested, it returns 0.

-The PerformanceTiming interface it belongs to.

See also on MDN

UnloadEventEnd

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("unloadEventEnd")]
public ulong UnloadEventEnd { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.unloadEventEnd
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, the Windowunload event handler finishes. If
there is no previous document, or if the previous document, or one of the needed
redirects, is not of the same origin, the value returned is 0.

-The PerformanceTiming interface it belongs to.

See also on MDN

UnloadEventStart

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("unloadEventStart")]
public ulong UnloadEventStart { get; }

Property Value

ulong

An unsigned long long.

Remarks

The legacy
PerformanceTiming.unloadEventStart
read-only property returns an unsigned long long representing the moment,
in milliseconds since the UNIX epoch, the Windowunload event has been thrown. If
there is no previous document, or if the previous document, or one of the needed
redirects, is not of the same origin, the value returned is 0.

-The PerformanceTiming interface it belongs to.

See also on MDN

Methods

ToJSON()

IMPORTANT
Deprecated
WARNING
This interface of this property is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
[Value("toJSON")]
public Object ToJSON()

Returns

Object

A {{jsxref("JSON")}} object that is the serialization of the PerformanceTiming object.

Remarks

The legacy toJSON() method of the PerformanceTiming interface is a {{Glossary("Serialization","serializer")}}; it returns a JSON representation of the PerformanceTiming object.

-JSON

See also on MDN