The soonest that the JavaScript or CSS will be injected into the tab.
On this page
extensionTypes.RunAt
Type
Values of this type are strings. Possible values are: "document_start"
, "document_end"
, "document_idle"
.
"document_start"
: corresponds toloading
. The DOM is still loading."document_end"
: corresponds tointeractive
. The DOM has finished loading, but resources such as scripts and images may still be loading."document_idle"
: corresponds tocomplete
. The document and all its resources have finished loading.
The default value is "document_idle"
.
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
RunAt |
20This feature is supported but not exposed through the 'extensionTypes' object. |
79This feature is supported but not exposed through the 'extensionTypes' object. |
45 | ? |
15This feature is supported but not exposed through the 'extensionTypes' object. |
14["This feature is supported but not exposed through the 'extensionTypes' object.", "'document_idle' and 'document_end' are treated the same."] |
? | ? | 48 | ? |
15["This feature is supported but not exposed through the 'extensionTypes' object.", "'document_idle' and 'document_end' are treated the same."] |
? |
Note: This API is based on Chromium's chrome.extensionTypes
API. This documentation is derived from extension_types.json
in the Chromium code.
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/extensionTypes/RunAt