Event Timing API

Editor’s Draft,

More details about this document
This version:
https://w3c.github.io/event-timing/
Latest published version:
https://www.w3.org/TR/event-timing/
Test Suite:
https://github.com/web-platform-tests/wpt/tree/master/event-timing
Feedback:
GitHub
Editor:
(Google)
Former Editors:
(Google)
(Google)
Not Ready For Implementation

This spec is not yet ready for implementation. It exists in this repository to record the ideas and promote discussion.

Before attempting to implement this spec, please contact the editors.


Abstract

This document defines an API that provides web page authors with insights into the latency of certain events triggered by user interactions.

Status of this document

This is a public copy of the editors’ draft. It is provided for discussion only and may change at any moment. Its publication here does not imply endorsement of its contents by W3C. Don’t cite this document other than as work in progress.

GitHub Issues are preferred for discussion of this specification.

This document is governed by the 18 August 2025 W3C Process Document.

1. Introduction

1.1. Overview

This section is non-normative.

When a user engages with a website, they expect their actions to cause changes to the website quickly. In fact, research suggests that any user input that is not handled within 100ms is considered slow. Therefore, it is important to surface performance timing information about input events that could not achieve those guidelines.

A common way to monitor event latency consists of registering an event listener. The timestamp at which the event was created can be obtained via the event’s timeStamp. In addition, performance.now() could be called both at the beginning and at the end of the event handler logic. By subtracting the hardware timestamp from the timestamp obtained at the beginning of the event handler, the developer can compute the input delay: the time it takes for an input to start being processed. By subtracting the timestamp obtained at the beginning of the event handler from the timestamp obtained at the end of the event handler, the developer can compute the amount of synchronous work performed in the event handler. Finally, when inputs are handled synchronously, the duration from event hardware timestamp to the next paint after the event is handled is a useful user experience metric.

This approach has several fundamental flaws. First, requiring event listeners precludes measuring event latency very early in the page load because listeners might not be registered yet. Second, developers who are only interested in input delay might be forced to add new listeners to events that originally did not have them. This adds unnecessary performance overhead to the event latency calculation. And lastly, it would be very hard to measure asynchronous work caused by the event via this approach.

This specification provides an alternative to event latency monitoring that solves some of these problems. Since the user agent computes the timestamps, there is no need for event listeners in order to measure performance. This means that even events that occur very early in the page load can be captured. This also enables visibility into slow events without requiring analytics providers to attempt to patch and subscribe to every conceivable event. In addition to this, the website’s performance will not suffer from the overhead of unneeded event listeners. Finally, this specification allows developers to obtain detailed information about the timing of the rendering that occurs right after the event has been processed. This can be useful to measure the overhead of website modifications that are triggered by events.

1.2. Interactions

This section is non-normative.

A single user interaction (sometimes called a Gesture) is typically made up of multiple physical hardware input events. Each physical input event might cause the User Agent to dispatch several UIEvents, and each of those might trigger multiple custom event listeners, or trigger distinct default actions.

For example, a single user "tap" interaction with a touchscreen device is actually made up of a sequence of physical input events:

Those physical input events might dispatch a series of UIEvents:

These individual UIEvents will each become candidates for their own PerformanceEventTiming entry reporting, which is useful for detailed timing.

Note: pointermove and touchmove are not currently considered for Event Timing.

However, this specification also defines a mechanism for grouping related PerformanceEventTimings into interactions via an interactionId. This mechanism can be used to define a page responsiveness metric called Interaction to Next Paint (INP).

1.3. First Input

This section is non-normative.

The very first user interaction typically has a disproportionate impact on user experience, and is also often disproportionately slow.

To that effect, the Event Timing API exposes timing information about the first input of a Window, defined as the first PerformanceEventTiming entry with a non-0 interactionId.

Unlike most PerformanceEventTimings, the first input entry is reported even if it does not exceed a provided durationThreshold, and is buffered even if it does not exceed the default duration threshold of 104ms. This mechanism can be used to define a page responsiveness metric called First Input Delay (FID).

This also allows developers to better measure percentiles and performance improvements, by including data even from pages which are always very responsive, without having to register event handlers.

1.4. Events exposed

The Event Timing API exposes timing information only for certain events.

Given an event, to determine if it should be considered for Event Timing, run the following steps:
  1. If event’s isTrusted attribute value is set to false, return false.

  2. If event’s type is one of the following: auxclick, click, contextmenu, dblclick, mousedown, mouseenter, mouseleave, mouseout, mouseover, mouseup, pointerover, pointerenter, pointerdown, pointerup, pointercancel, pointerout, pointerleave, gotpointercapture, lostpointercapture, touchstart, touchend, touchcancel, keydown, keypress, keyup, beforeinput, input, compositionstart, compositionupdate, compositionend, dragstart, dragend, dragenter, dragleave, dragover, drop, return true.

  3. Return false.

Note: mousemove, pointermove, pointerrawupdate, touchmove, wheel, and drag are excluded because these are "continuous" events. The current API does not have enough guidance on how to count and aggregate these events to obtain meaningful performance metrics based on entries. Therefore, these event types are not exposed.

1.5. When events are measured

This section is non-normative. It explains at a high level the information that is exposed in the § 4 Processing model section.

Event timing information is only exposed for certain events, and only when the time difference between user input and paint operations that follow input processing exceeds a certain duration threshold.

The Event Timing API exposes a duration value, which is meant to be the time from when the physical user input occurs (estimated via the Event’s timeStamp) to the next time the rendering of the Event’s relevant global object’s associated Document is updated. This value is provided with 8 millisecond granularity.

By default, the Event Timing API buffers and exposes entries when the duration is 104 or greater, but a developer can set up a PerformanceObserver to observe future entries with a different threshold. Note that this does not change the entries that are buffered and hence the buffered flag only enables receiving past entries with duration greater than or equal to the default threshold.

An Event’s delay is the difference between the time when the browser is about to run event handlers for the event and the Event’s timeStamp. The former point in time is exposed as the PerformanceEventTiming’s processingStart, whereas the latter is exposed as PerformanceEventTiming’s startTime. Therefore, an Event’s delay can be computed as processingStart - startTime.

Note that the Event Timing API creates entries for events regardless of whether they have any event listeners. In particular, the first click or the first key might not be the user actually trying to interact with the page functionality; many users do things like select text while they’re reading or click in blank areas to control what has focus. This is a design choice to capture problems with pages which register their event listeners too late and to capture performance of inputs that are meaningful despite not having event listeners, such as hover effects. Developers can choose to ignore such entries by ignoring those with essentially zero values of processingEnd - processingStart.

1.6. Usage example

const observer = new PerformanceObserver(function(list, obs) {
    for (let entry of list.getEntries()) {
        // Input Delay
        const inputDelay = entry.processingStart - entry.startTime;
        // Processing duration
        const processingDuration = entry.processingEnd - entry.processingStart;
        // Presentation Delay (approximate)
        const presentationDelay = Math.max(0, entry.startTime + entry.duration - entry.processingEnd);

        // Obtain some information about the target of this event, such as the id.
        const targetId = entry.target ? entry.target.id : 'unknown-target';

        console.log(entry.entryType, entry.name, entry.duration, { inputDelay, processingDuration, presentationDelay });
    }
});
observer.observe({ type: 'first-input', buffered: true });
observer.observe({ type: 'event', buffered: true, durationThreshold: 40 });

The following example computes a dictionary mapping interactionId to the maximum duration of any of its events. This dictionary can later be aggregated and reported to analytics.

let maxDurations = {};
new PerformanceObserver(list => {
    for (let entry of list.getEntries()) {
        if (entry.interactionId > 0) {
            let id = entry.interactionId;
            if (!maxDurations[id]) {
                maxDurations[id] = entry.duration;
            } else {
                maxDurations[id] = Math.max(maxDurations[id], entry.duration);
            }
        }
    }
}).observe({ type: 'event', buffered: true, durationThreshold: 16 });

The following are sample use cases that could be achieved by using this API:

2. Event Timing

Event Timing adds the following interfaces:

2.1. PerformanceEventTiming interface

[Exposed=Window]
interface PerformanceEventTiming : PerformanceEntry {
    readonly attribute DOMHighResTimeStamp processingStart;
    readonly attribute DOMHighResTimeStamp processingEnd;
    readonly attribute boolean cancelable;
    readonly attribute Node? target;
    readonly attribute DOMString targetSelector;
    readonly attribute unsigned long long interactionId;
    [Default] object toJSON();
};
A PerformanceEventTiming object reports timing information about one associated Event.

Each PerformanceEventTiming object has these associated concepts:

The name attribute’s getter must return this’s associated event’s type attribute value.

The entryType attribute’s getter must return this’s entry type.

The startTime attribute’s getter must return this’s associated event’s timeStamp attribute value.

The duration attribute’s getter must return this’s render time minus this’s startTime, rounded to the nearest 8ms.

The processingStart attribute’s getter must return this’s processing start timestamp.

The processingEnd attribute’s getter must return this’s processing end timestamp.

The cancelable attribute’s getter must return this’s associated event’s cancelable attribute value.

The target attribute’s getter must perform the following steps:

  1. If this’s eventTarget is not exposed for paint timing given null, return null.

  2. Return this’s eventTarget.

The targetSelector attribute’s getter must return the result of generate a CSS selector given this’s eventTarget.

The interactionId attribute’s getter must return this’s interactionId if it is not null, or 0 otherwise.

Note: A user agent implementing the Event Timing API would need to include "first-input" and "event" in supportedEntryTypes for Window contexts. This allows developers to detect support for event timing.

2.2. EventCounts interface

[Exposed=Window]
interface EventCounts {
    readonly maplike<DOMString, unsigned long long>;
};

The EventCounts object is a map where the keys are event types and the values are the number of events that have been dispatched that are of that type. Only events whose type is supported by PerformanceEventTiming entries (see section § 1.4 Events exposed) are counted via this map.

2.3. Extensions to the Performance interface

[Exposed=Window]
partial interface Performance {
    [SameObject] readonly attribute EventCounts eventCounts;
    readonly attribute unsigned long long interactionCount;
};

The eventCounts attribute’s getter returns this’s relevant global object’s event counts.

The interactionCount attribute’s getter returns this’s relevant global object’s interaction count.

3. Modifications to other specifications

3.1. Modifications to the DOM specification

This section will be removed once [DOM] has been modified.

We modify the event dispatch algorithm given event as follows.

Right after step 1, we add the following steps:

  1. Let timingEntry be the result of initializing and recording event timing processing start given event and the current high resolution time.

Right before the returning step of that algorithm, add the following step:

  1. Record event timing processing end given timingEntry, target, and the current high resolution time as inputs.

Note: If a user agent skips the event dispatch algorithm, it can still choose to include an entry for that Event. In this case, it will estimate the value of processingStart and set the processingEnd to the same value.

3.2. Modifications to the HTML specification

This section will be removed once [HTML] has been modified.

Each Window has the following associated concepts:
In the update the rendering step within the event loop processing model:
  1. For each Document doc that is either removed from docs (due to being non-renderable or unnecessary) or is fully active in docs (after calling mark paint timing), run the following steps:

    1. Record event timing render time for doc with the current high resolution time.

    2. Flush Event Timing entries for doc.

Note: To ensure timely reporting, event timing entries are updated and flushed even when a rendering update is skipped (e.g., if the document is non-renderable). In these cases, the current high resolution time serves as a "fallback" for the render time. Formally distinguishing between this fallback and a true "paint" time is left as a potential future extension.

3.3. Modifications to the Performance Timeline specification

This section will be removed once [PERFORMANCE-TIMELINE-2] had been modified.

The PerformanceObserverInit dictionary is augmented:

partial dictionary PerformanceObserverInit {
    DOMHighResTimeStamp durationThreshold;
};

4. Processing model

4.1. Initialize and record event timing processing start

To initialize and record event timing processing start given event and processingStartTimestamp:
  1. If event should not be considered for Event Timing, return null.

  2. Let timingEntry be a new PerformanceEventTiming object with event’s relevant realm.

  3. Set timingEntry’s associated event to event.

  4. Set timingEntry’s entry type to "event".

  5. Set timingEntry’s processing start timestamp to processingStartTimestamp.

  6. Set timingEntry’s interactionId to the result of compute interactionId given event and timingEntry.

  7. Let window be event’s relevant global object.

  8. If window does not implement Window, return null.

  9. Let type be event’s type.

  10. Let event counts be window’s event counts.

  11. Assert that event counts Contains type.

  12. Set event counts[type] to event counts[type] + 1.

  13. If window’s has dispatched input event is false and timingEntry’s interactionId is not 0, run the following steps:

    1. Set window’s has dispatched input event to true.

    Note: has dispatched input event is set to true as soon as an interactive event is initialized. For pointerdown entries, interactionId is still unknown at this point, but other specifications (such as Largest Contentful Paint) which use this, will observe both pointer interactions and scroll as input, anyway.

  14. Return timingEntry.

4.2. Record event timing processing end

To record event timing processing end given timingEntry, target, and processingEndTimestamp:
  1. If timingEntry is null, then return.

  2. Let relevantGlobal be target’s relevant global object.

  3. Set timingEntry’s processing end timestamp to processingEndTimestamp.

  4. Assert that target implements Node.

    Note: This assertion holds due to the types of events supported by the Event Timing API.

  5. Set timingEntry’s eventTarget to target.

  6. Append timingEntry to relevantGlobal’s pending Event Timing entries.

4.3. Record event timing render time

To record event timing render time given a Document doc and a renderingTimestamp:
  1. Let window be doc’s relevant global object.

  2. For each timingEntry in window’s pending Event Timing entries:

    1. If timingEntry’s render time is 0, set timingEntry’s render time to renderingTimestamp.

4.4. Compute interactionId

To compute interactionId given an Event event and a PerformanceEventTiming entry:
  1. Let type be event’s type attribute value.

  2. If type is not one among keydown, keypress, keyup, input, pointerdown, pointercancel, pointerup, click, or contextmenu, return 0.

  3. Let window be event’s relevant global object.

  4. Let newInteractionId be null.

  5. If event is a PointerEvent and event’s pointerId is greater than or equal to 0:

    1. Set newInteractionId to the result of compute pointer interactionId given window, event, and entry.

  6. Else:

    1. Set newInteractionId to the result of computing the keyboard interactionId given window and event.

Note: At this point, newInteractionId can be null only if type is pointerdown. Keyboard interactions and other pointer interactions either compute a valid ID or fallback to 0 directly in their respective sub-algorithms.

  1. Return newInteractionId.

To get the next interactionId for a Window window:
  1. Set window’s interaction count to window’s interaction count plus 1.

  2. Return window’s initial interactionId value plus (window’s interaction count times window’s interactionId increment).

To compute pointer interactionId given a Window window, an Event event, and a PerformanceEventTiming entry:
  1. Let type be event’s type attribute value.

  2. Let pointerId be event’s pointerId attribute value.

  3. Let activePointerInteractions be window’s active pointer interaction map.

  4. Let pendingPointerDowns be window’s pending pointerdown map.

  5. Let newInteractionId be null.

  6. If type is pointerdown:

    1. If pendingPointerDowns[pointerId] exists:

      1. Run resolve pending pointerdown given window and pendingPointerDowns[pointerId].

    2. Set pendingPointerDowns[pointerId] to entry.

  7. Else if type is pointerup, contextmenu, or click:

    1. If pendingPointerDowns[pointerId] exists:

      1. Set newInteractionId to the result of resolve pending pointerdown given window and pendingPointerDowns[pointerId].

    2. If newInteractionId is null and activePointerInteractions[pointerId] exists:

      1. Set newInteractionId to activePointerInteractions[pointerId].

    3. If newInteractionId is null:

      1. Set newInteractionId to the result of getting the next interactionId given window.

      Note: Most pointer interactions are expected to have an associated pointerdown event, which would have assigned an interactionId in the steps above. However, some special input devices (for example, accessibility-related software) can simulate certain trusted pointer events without following the usual event sequence.

  8. Else if type is pointercancel:

    1. If pendingPointerDowns[pointerId] exists:

      1. Set pendingPointerDowns[pointerId]'s interactionId to 0.

      2. Remove pendingPointerDowns[pointerId].

    2. Set newInteractionId to 0.

  9. Return newInteractionId.

To resolve pending pointerdown given a Window window and a PerformanceEventTiming pointerDownEntry:
  1. Let newInteractionId be the result of getting the next interactionId given window.

  2. Set pointerDownEntry’s interactionId to newInteractionId.

  3. Let pointerId be pointerDownEntry’s associated event’s pointerId.

  4. Set window’s active pointer interaction map[pointerId] to newInteractionId.

  5. Remove window’s pending pointerdown map[pointerId].

  6. Return newInteractionId.

To compute the keyboard interactionId given a Window window and an Event event:
  1. Let type be event’s type attribute value.

  2. Let activeKeyInteractions be window’s active key interaction map.

  3. Let newInteractionId be null.

  4. If type is keydown:

    1. Set newInteractionId to the result of getting the next interactionId given window.

    2. Set activeKeyInteractions[event’s keyCode] to newInteractionId.

    3. Set window’s last keydown interactionId to newInteractionId.

    Note: last keydown interactionId is used to attribute simulated click or contextmenu events (which lack a keyCode), as well as input events (which follow a keydown), back to the originating keyboard interaction.

  5. Else if type is keypress:

    1. Let keyCode be event’s keyCode attribute value.

    2. If activeKeyInteractions[keyCode] exists:

      1. Set newInteractionId to activeKeyInteractions[keyCode].

    3. Else if window’s last keydown interactionId is not 0:

      1. Set newInteractionId to window’s last keydown interactionId.

    4. Else:

      1. Set newInteractionId to 0.

    Note: This fallback for keypress events is necessary because the keyCode of a keypress event might differ from that of the preceding keydown event. [UIEVENTS] recommends using the code attribute to avoid such inconsistencies (see UI Events section on code motivation).

  6. Else if type is keyup:

    1. Let keyCode be event’s keyCode attribute value.

    2. If activeKeyInteractions[keyCode] exists:

      1. Set newInteractionId to activeKeyInteractions[keyCode].

    3. Else:

      1. Set newInteractionId to 0.

    4. Set window’s last keyup interactionId to newInteractionId.

    5. Set window’s last keydown interactionId to 0.

  7. Else if type is input:

    1. If window’s last keydown interactionId is not 0:

      1. Set newInteractionId to window’s last keydown interactionId.

      2. Set window’s last keydown interactionId to 0.

    2. Else:

      1. Set newInteractionId to the result of getting the next interactionId given window.

  8. Else if type is click or contextmenu:

    1. If window’s last keydown interactionId is not 0:

      1. Set newInteractionId to window’s last keydown interactionId.

    2. Else if window’s last keyup interactionId is not 0:

      1. Set newInteractionId to window’s last keyup interactionId.

    3. If newInteractionId is not null:

      1. Set window’s last keydown interactionId to 0.

      2. Set window’s last keyup interactionId to 0.

    4. Else:

      1. Set newInteractionId to the result of getting the next interactionId given window.

    Note: For click events, it is expected that the keyCode represents "Enter" or "Space", and an implementation can enforce this constraint.

  9. Return newInteractionId.

Note: During a composition session, keyboard and input events are still expected to be dispatched according to the UI Events section on keyboard events during composition. These events are assigned an interactionId corresponding to the active keyboard interaction, whereas the composition events themselves (e.g., compositionstart, compositionupdate) are not assigned an interactionId.

4.5. Flush Event Timing entries

To Flush Event Timing entries given a Document doc:
  1. Let window be doc’s relevant global object.

  2. While window’s pending Event Timing entries is not empty:

    1. Let timingEntry be the first element of window’s pending Event Timing entries.

    2. If timingEntry’s interactionId is null, break.

    3. If window’s has queued first-input is false, and timingEntry’s interactionId is not 0, run the following steps:

      1. Set window’s has queued first-input to true.

      2. Let firstInputEntry be a copy of timingEntry.

      3. Set firstInputEntry’s entry type to "first-input".

      4. queue firstInputEntry.

    4. If timingEntry’s duration is greater than or equal to 16, then queue timingEntry.

    5. Remove the first element of window’s pending Event Timing entries.

4.6. Should add PerformanceEventTiming

Note: The following algorithm is used in the [PERFORMANCE-TIMELINE-2] specification to determine when a PerformanceEventTiming entry needs to be added to the buffer of a PerformanceObserver or to the performance timeline, as described in the registry.

To should add PerformanceEventTiming given a PerformanceEventTiming entry and an optional PerformanceObserverInit options:
  1. If entry’s entryType attribute value equals to "first-input", return true.

  2. Assert that entry’s entryType attribute value equals "event".

  3. Let minDuration be computed as follows:

    1. If options is not present or if options’s durationThreshold is not present, let minDuration be 104.

    2. Otherwise, let minDuration be the maximum between 16 and options’s durationThreshold value.

  4. If entry’s duration attribute value is greater than or equal to minDuration, return true.

  5. Otherwise, return false.

4.7. Target Selectors

To generate a CSS selector given an EventTarget target, run the following steps:
  1. If target is a Node, run the following steps:

    1. Let selector be a string with an initial value of target’s nodeName.

    2. If target is an Element, run the following steps:

      1. If target has an id attribute, set selector to the concatenation of « selector, "#", the value of the `id` attribute ».

      2. Otherwise, if target has a src attribute, set selector to the concatenation of « selector, "[src=", the value of the `src` attribute, "]" ».

    3. Return selector.

  2. Otherwise, return an empty string.

5. Security & privacy considerations

We would not like to introduce more high resolution timers to the web platform due to the security concerns entailed by such timers. Event handler timestamps have the same accuracy as performance.now(). Since processingStart and processingEnd could be computed without using this API, exposing these attributes does not produce new attack surfaces. Thus, duration is the only one which requires further consideration.

The duration has an 8 millisecond granularity (it is computed as such by performing rounding). Thus, a high resolution timer cannot be produced from these timestamps. However, it does introduce new information that is not readily available to web developers: the time pixels draw after an event has been processed. We do not find security or privacy concerns with exposing the timestamp, especially given its granularity. In an effort to expose the minimal amount of new information that is useful, we decided to pick 8 milliseconds as the granularity. This allows relatively precise timing even for 120Hz displays.

The choice of 104ms as the default cutoff value for the duration is just the first multiple of 8 greater than 100ms. An event whose rounded duration is greater than or equal to 104ms will have its pre-rounded duration greater than or equal to 100ms. Such events are not handled within 100ms and will likely negatively impact user experience.

The choice of 16ms as the minimum value allowed for durationThreshold is because it enables the typical use-case of making sure that the response is smooth. In 120Hz displays, a response that skips more than a single frame will be at least 16ms, so the entry corresponding to this user input will be surfaced in the API under the minimum value.

Conformance

Document conventions

Conformance requirements are expressed with a combination of descriptive assertions and RFC 2119 terminology. The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in the normative parts of this document are to be interpreted as described in RFC 2119. However, for readability, these words do not appear in all uppercase letters in this specification.

All of the text of this specification is normative except sections explicitly marked as non-normative, examples, and notes. [RFC2119]

Examples in this specification are introduced with the words “for example” or are set apart from the normative text with class="example", like this:

This is an example of an informative example.

Informative notes begin with the word “Note” and are set apart from the normative text with class="note", like this:

Note, this is an informative note.

Conformant Algorithms

Requirements phrased in the imperative as part of algorithms (such as "strip any leading space characters" or "return false and abort these steps") are to be interpreted with the meaning of the key word ("must", "should", "may", etc) used in introducing the algorithm.

Conformance requirements phrased as algorithms or specific steps can be implemented in any manner, so long as the end result is equivalent. In particular, the algorithms defined in this specification are intended to be easy to understand and are not intended to be performant. Implementers are encouraged to optimize.

Index

Terms defined by this specification

Terms defined by reference

References

Normative References

[DOM]
Anne van Kesteren. DOM Standard. Living Standard. URL: https://dom.spec.whatwg.org/
[HR-TIME-2]
Ilya Grigorik. High Resolution Time Level 2. URL: https://w3c.github.io/hr-time/
[HR-TIME-3]
Yoav Weiss. High Resolution Time. URL: https://w3c.github.io/hr-time/
[HTML]
Anne van Kesteren; et al. HTML Standard. Living Standard. URL: https://html.spec.whatwg.org/multipage/
[INFRA]
Anne van Kesteren; Domenic Denicola. Infra Standard. Living Standard. URL: https://infra.spec.whatwg.org/
[PAINT-TIMING]
Ian Clelland; Noam Rosenthal. Paint Timing. URL: https://w3c.github.io/paint-timing/
[PERFORMANCE-TIMELINE-2]
Nicolas Pena Moreno. Performance Timeline. URL: https://w3c.github.io/performance-timeline/
[POINTEREVENTS4]
Patrick Lauke; Robert Flack. Pointer Events. URL: https://w3c.github.io/pointerevents/
[RFC2119]
S. Bradner. Key words for use in RFCs to Indicate Requirement Levels. March 1997. Best Current Practice. URL: https://datatracker.ietf.org/doc/html/rfc2119
[TOUCH-EVENTS]
Doug Schepers; et al. Touch Events. URL: https://w3c.github.io/touch-events/
[UIEVENTS]
Xiaoqian Wu. UI Events. URL: https://w3c.github.io/uievents/
[WEBIDL]
Edgar Chen; Timothy Gu. Web IDL Standard. Living Standard. URL: https://webidl.spec.whatwg.org/

IDL Index

[Exposed=Window]
interface PerformanceEventTiming : PerformanceEntry {
    readonly attribute DOMHighResTimeStamp processingStart;
    readonly attribute DOMHighResTimeStamp processingEnd;
    readonly attribute boolean cancelable;
    readonly attribute Node? target;
    readonly attribute DOMString targetSelector;
    readonly attribute unsigned long long interactionId;
    [Default] object toJSON();
};

[Exposed=Window]
interface EventCounts {
    readonly maplike<DOMString, unsigned long long>;
};

[Exposed=Window]
partial interface Performance {
    [SameObject] readonly attribute EventCounts eventCounts;
    readonly attribute unsigned long long interactionCount;
};

partial dictionary PerformanceObserverInit {
    DOMHighResTimeStamp durationThreshold;
};

MDN

EventCounts

Firefox89+SafariNoneChrome85+
Opera?Edge85+
Edge (Legacy)?IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

Performance/eventCounts

Firefox89+SafariNoneChrome85+
Opera?Edge85+
Edge (Legacy)?IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
Node.jsNone
MDN

PerformanceEventTiming/cancelable

Firefox89+SafariNoneChrome76+
Opera?Edge79+
Edge (Legacy)?IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceEventTiming/interactionId

In only one current engine.

FirefoxNoneSafariNoneChrome96+
Opera?Edge96+
Edge (Legacy)?IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceEventTiming/processingEnd

Firefox89+SafariNoneChrome76+
Opera?Edge79+
Edge (Legacy)?IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceEventTiming/processingStart

Firefox89+SafariNoneChrome76+
Opera?Edge79+
Edge (Legacy)?IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceEventTiming/target

Firefox89+SafariNoneChrome85+
Opera?Edge85+
Edge (Legacy)?IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceEventTiming/toJSON

Firefox89+SafariNoneChrome76+
Opera?Edge79+
Edge (Legacy)?IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceEventTiming

Firefox89+SafariNoneChrome76+
Opera?Edge79+
Edge (Legacy)?IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?