Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/utils / dist / createScriptTag.d.ts
Size: Mime:
interface HTMLScriptElementAttributes {
    async: boolean;
    crossOrigin: string | null;
    /** Sets or retrieves the status of the script. */
    defer: boolean;
    integrity: string;
    noModule: boolean;
    /** Retrieves the URL to an external file that contains the source code or data. */
    src: string;
    /** Retrieves or sets the text of the object as a string. */
    text: string;
    /** Sets or retrieves the MIME type for the associated scripting engine. */
    type: string;
}
/**
 * @tutorial https://hacks.mozilla.org/2009/06/defer/
 *
 * @param src url of the script tag
 * @param attributes
 * @modifies window.dom -> createElement -> <script src>
 */
declare function createScriptTag(src: string, attributes?: Partial<HTMLScriptElementAttributes>): void;
export { createScriptTag };
export default createScriptTag;