[]previous and next page

ScriptOptions

Options of scriptTag.

Options of scriptTag.

Import#

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

Signature#

ts
interface ScriptOptions {
  /** A path on this origin, or an http(s) URL. */
  readonly src: string;
  /** Default `afterInteractive`. */
  readonly strategy?: ScriptStrategy;
  /** The request's CSP nonce (`event.nonce`), when the policy uses one. */
  readonly nonce?: string;
}

Members#

Name Type Description
src readonly src: string A path on this origin, or an http(s) URL.
strategy? readonly strategy?: ScriptStrategy Default afterInteractive.
nonce? readonly nonce?: string The request's CSP nonce (event.nonce), when the policy uses one.