PreloadScript

external interface PreloadScript(source)

Properties

Link copied to clipboard
abstract external var filePath: String

Path of the script file. Must be an absolute path.

Link copied to clipboard
abstract external var id: String

Unique ID of preload script.

Link copied to clipboard
abstract external var type: PreloadScriptType

Context type where the preload script will be executed. Possible values include frame or service-worker.