@labkey/api
    Preparing search index...

    Function requiresScript

    • Loads JavaScript file(s) from the server.

      Parameters

      • file: string | string[]

        A file or Array of files to load.

      • callback: Function

        Callback for when all dependencies are loaded.

      • Optionalscope: any

        Scope of callback.

      • OptionalinOrder: boolean

        True to load the scripts in the order they are passed in. Default is false.

        <script type="text/javascript">
        LABKEY.Utils.requiresScript("myModule/myScript.js", function() {
        // your script is loaded
        });
        </script>

      Returns void