AboutSupportDeveloper GuideVersion 47.154.100.2
OpenFin JavaScript API
    Preparing search index...

    Interface PreloadScript

    A script that is run before page load.

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

    Fail to load the window if this preload script fails

    false
    
    state?:
        | "load-started"
        | "load-failed"
        | "load-succeeded"
        | "failed"
        | "succeeded"

    Preload script execution state.

    url: string

    The URL from which the script was loaded.