Firefox Tomorrow

web api interface

Performance

View on MDN ↗

Available in workers

The Performance interface provides access to performance-related information for the current page.

Performance entries are specific to each execution context. You can access performance information for code running in a window via performance, and for code running in a worker via performance.

Instance properties

The Performance interface doesn’t inherit any properties.

  • eventCounts Read only
    • : An EventCounts map containing the number of events which have been dispatched per event type.
  • interactionCount Read only
  • navigation Read only Deprecated
    • : A legacy PerformanceNavigation object that provides useful context about the operations included in the times listed in timing, including whether the page was a load or a refresh, how many redirections occurred, and so forth.
  • timing Read only Deprecated
    • : A legacy PerformanceTiming object containing latency-related performance information.
  • memory Read only Deprecated
    • : A non-standard extension added in Chrome, this property provides an object with basic memory usage information. You should not use this non-standard API.
  • timeOrigin Read only
    • : Returns the high resolution timestamp of the start time of the performance measurement.

Instance methods

The Performance interface doesn’t inherit any methods.

Events

Listen to these events using addEventListener() or by assigning an event listener to the oneventname property of this interface.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.