extensionTypes.RunAt
The soonest that the JavaScript or CSS will be injected into the tab.
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
Report problems with this compatibility data on GitHubwebextensions-desktop | webextensions-mobile | |||||
---|---|---|---|---|---|---|
RunAt | ChromePartial support20
| EdgePartial support79
| FirefoxFull support45 | OperaPartial support15
| SafariPartial supportPartial
| Firefox for AndroidFull support48 |
Legend
- Full support
- Full support
- Partial support
- Partial support
- No support
- No support
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Acknowledgements
This API is based on Chromium's chrome.extensionTypes
API. This documentation is derived from extension_types.json
in the Chromium code.
Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.