@validide/u-front-ends
    Preparing search index...

    Function loadResource

    • A function to load a resource and wait for it to load.

      Parameters

      • document: Document

        The reference to the document object.

      • url: string

        The resource URL.

      • isScript: boolean = true

        Is this resource a script or a stylesheet?

      • OptionalskipLoading: () => boolean

        Function to determine if the resource should not be loaded.

      • Optionalattributes: { [key: string]: string }

        Extra attributes to add on the HTML element before attaching it to the document.

      Returns Promise<void>