For AI agents: a documentation index is available at /llms.txt
Skip to main content

AddScriptTagOptions

Properties

PropertyTypeDescription
content?stringThe raw JavaScript content of the script to add. One of "url" or "content" is required.
id?stringThe id attribute to set on the injected script element
path?stringRead JavaScript from this local file before sending the mutation. Node.js only.
type?stringThe type attribute to set on the injected script element, eg: "module"
url?stringThe URL of the script to add. One of "url" or "content" is required.