[]previous and next page

LoadScriptOptions

Options of loadScript.

Options of loadScript.

Import#

ts
import type { LoadScriptOptions } from "@shadow-js/dusk/client";

Signature#

ts
interface LoadScriptOptions {
  /** The script's source (a path or an http(s) URL). */
  readonly src: string;
  /** The nonce of the page's policy, when it uses one. */
  readonly nonce?: string;
  /** The document to add the script to. Default: the global one. */
  readonly document?: Document;
}

Members#

Name Type Description
src readonly src: string The script's source (a path or an http(s) URL).
nonce? readonly nonce?: string The nonce of the page's policy, when it uses one.
document? readonly document?: Document The document to add the script to. Default: the global one.