Interface LoadScriptOptions

Options map to load script

Hierarchy

  • LoadScriptOptions

Properties

async?: boolean

If "true" the "async" attribute is added to the new script. Defaults to false.

defer?: boolean

If "true" the "defer" attribute is added to the new script. Defaults to false.

placeholder?: HTMLElement

Element that should contain the script. Defaults to the parentNode of the currentScript or if missing to document.head.

type?: string

Type of the script. Defaults to 'text/javascript'.

Generated using TypeDoc