• Asynchronously loads a HTMLImageElement with the specified src, and resolves once the image has been loaded.

    Parameters

    • source: string

      The src for the image to load.

    Returns Promise<HTMLImageElement>

    The loaded image.