Table of Contents

Class PerformanceNavigation

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
IMPORTANT
Deprecated
The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.
[Value("PerformanceNavigation")]
public class PerformanceNavigation
Inheritance
PerformanceNavigation
Inherited Members

Remarks

WARNING

This interface is deprecated in the Navigation Timing Level 2 specification.
Please use the PerformanceNavigationTiming interface instead.

An object of this type can be obtained by calling the Navigation read-only attribute.

-The Performance that allows access to an object of this type.
-PerformanceNavigationTiming (part of Navigation Timing Level 2) that has superseded this API.

See also on MDN

Constructors

PerformanceNavigation()

public PerformanceNavigation()

Fields

TYPE_BACK_FORWARD

[Value("TYPE_BACK_FORWARD")]
public const ushort TYPE_BACK_FORWARD = 2

Field Value

ushort

TYPE_NAVIGATE

[Value("TYPE_NAVIGATE")]
public const ushort TYPE_NAVIGATE = 0

Field Value

ushort

TYPE_RELOAD

[Value("TYPE_RELOAD")]
public const ushort TYPE_RELOAD = 1

Field Value

ushort

TYPE_RESERVED

[Value("TYPE_RESERVED")]
public const ushort TYPE_RESERVED = 255

Field Value

ushort

Properties

RedirectCount

IMPORTANT
Deprecated
The legacy
PerformanceNavigation.redirectCount
read-only property returns an unsigned short representing the number of
REDIRECTs done before reaching the page.
[Value("redirectCount")]
public ushort RedirectCount { get; }

Property Value

ushort

An unsigned short.

Remarks

WARNING

This interface of this property is deprecated in the Navigation Timing Level 2 specification.
Please use the PerformanceNavigationTiming interface instead.

-The PerformanceNavigation interface it belongs to.

See also on MDN

Type

IMPORTANT
Deprecated
The legacy
PerformanceNavigation.type
read-only property returns an unsigned short containing a constant
describing how the navigation to this page was done.
[Value("type")]
public ushort Type { get; }

Property Value

ushort

An unsigned short.Possible values are:

NOTE
Historically, developers tested for a type of "TYPE_BACK_FORWARD" to get an indication of back/forward cache ({{glossary("bfcache")}}) hit rate. This however did not provide any reasons for bfcache blocking, or any other data. The NotRestoredReasons property should be used to monitor the bfcache, going forward. See Monitoring bfcache blocking reasons for more information.

Remarks

WARNING

This interface of this property is deprecated in the Navigation Timing Level 2 specification.
Please use the PerformanceNavigationTiming interface instead.

-The PerformanceNavigation 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 PerformanceNavigation object.

Remarks

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

-JSON

See also on MDN