RunAt enum

The soonest that the JavaScript or CSS will be injected into the tab.

Inheritance
Available extensions

Values

documentStart → const RunAt

Script is injected after any files from css, but before any other DOM is constructed or any other script is run.

const RunAt('document_start')
documentEnd → const RunAt

Script is injected immediately after the DOM is complete, but before subresources like images and frames have loaded.

const RunAt('document_end')
documentIdle → const RunAt

The browser chooses a time to inject the script between "document_end" and immediately after the window.onload event fires. The exact moment of injection depends on how complex the document is and how long it is taking to load, and is optimized for page load speed. Content scripts running at "document_idle" don't need to listen for the window.onload event; they are guaranteed to run after the DOM completes. If a script definitely needs to run after window.onload, the extension can check if onload has already fired by using the document.readyState property.

const RunAt('document_idle')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
toJS → JSString
no setter
value → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJS(JSString value) → RunAt

Constants

values → const List<RunAt>
A constant List of the values in this enum, in order of their declaration.