GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

InteractionContentfulPaint: interactionId property

Performance API

Performance API

The **`interactionId`** read-only property of the InteractionContentfulPaint interface returns the interactionId of the PerformanceEventTiming entry representing the interaction that resulted in the paint.

## Value

An integer matching the interactionId of the interaction that resulted in the paint.

## Examples

### Logging the `interactionId` of `InteractionContentfulPaint`

This example uses a PerformanceObserver to log new `interaction-contentful-paint` performance entries as they are recorded in the browser's performance timeline. The `buffered` option is used to access entries from before the observer creation.

```js
const observer = new PerformanceObserver((list) => {
for (const entry of list.getEntries()) {
console.log(
"Interaction Contentful Paint:",
entry.startTime,
entry.interactionId,
);
}
});
observer.observe({ type: "interaction-contentful-paint", buffered: true });
```

## Specifications

## Browser compatibility

source: MDN Web Docs mirror · page

Cite this

"InteractionContentfulPaint: interactionId property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/InteractionContentfulPaint/interactionId

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·