RunAt enum
The soonest that the JavaScript or CSS will be injected into the tab.
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.onloadevent 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 thewindow.onloadevent; they are guaranteed to run after the DOM completes. If a script definitely needs to run afterwindow.onload, the extension can check ifonloadhas already fired by using thedocument.readyStateproperty.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