Repository URL to install this package:
|
Version:
1.1.6 ▾
|
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;