This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The containerSrc readonly property of the TaskAttributionTiming interface returns the container's src attribute. A container is the iframe, embed or object etc. that is being implicated, on the whole, for a long task.


var containerSrc = TaskAttributionTiming.containerSrc;


A DOMString containing the container's src attribute.


Specification Status Comment
Long Tasks API 1
The definition of 'containerSrc' in that specification.
Working Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Chrome Full support 58Edge Full support ≤79Firefox No support NoIE No support NoOpera Full support YesSafari ? WebView Android Full support 58Chrome Android Full support 58Firefox Android No support NoOpera Android Full support YesSafari iOS ? Samsung Internet Android Full support 7.0


Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.