TaskAttributionTiming
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
TheTaskAttributionTiming interface returns information about the work involved in a long task and its associate frame context. The frame context, also called the container, is the iframe, embed or object that is being implicated, on the whole, for a long task.
You usually work withTaskAttributionTiming objects when observinglong tasks.
TaskAttributionTiming inherits fromPerformanceEntry.
In this article
Instance properties
This interface extends the followingPerformanceEntry properties for event timing performance entry types by qualifying them as follows:
PerformanceEntry.durationRead onlyExperimentalAlways returns
0, asdurationis not applicable for this interface.PerformanceEntry.entryTypeRead onlyExperimentalAlways returns
taskattribution.PerformanceEntry.nameRead onlyExperimentalAlways returns
"unknown".PerformanceEntry.startTimeRead onlyExperimentalAlways returns
0.
This interface also supports the following properties:
TaskAttributionTiming.containerTypeRead onlyExperimentalReturns the type of frame container, one of
iframe,embed, orobject.TaskAttributionTiming.containerSrcRead onlyExperimentalReturns the container's
srcattribute.TaskAttributionTiming.containerIdRead onlyExperimentalReturns the container's
idattribute.TaskAttributionTiming.containerNameRead onlyExperimentalReturns the container's
nameattribute.
Instance methods
TaskAttributionTiming.toJSON()ExperimentalReturns a JSON representation of the
TaskAttributionTimingobject.
Specifications
| Specification |
|---|
| Long Tasks API> # sec-TaskAttributionTiming> |