Type alias PreloadScript

PreloadScript: {
    mandatory?: boolean;
    state?: "load-started" | "load-failed" | "load-succeeded" | "failed" | "succeeded";
    url: string;
}

A script that is run before page load.

Type declaration

  • Optional mandatory?: boolean

    Default Value

    false

    Fail to load the window if this preload script fails

  • Optional state?: "load-started" | "load-failed" | "load-succeeded" | "failed" | "succeeded"

    Preload script execution state.

  • url: string

    The URL from which the script was loaded.

Generated using TypeDoc