URL of the JavaScript resource.
Optionalattributes?: Record<string, string> | nullAdditional attributes for the <script> element.
Optionalcallback?: (...params: MazeyFnParams) => anyCallback invoked after the script loads.
OptionalcssUrl?: stringOptional CSS resource to begin loading before the script is inserted.
Optionalid?: stringOptional ID for the <script> element.
OptionalisAsync?: booleanWhether to set the async attribute.
OptionalisCrossOrigin?: booleanWhether to request the script anonymously across origins.
OptionalisDefer?: booleanWhether to set the defer attribute.
Optionaltimeout?: numberTimeout in milliseconds.
A promise that resolves to "loaded" after the script loads.
Load and execute a JavaScript file dynamically.
Usage:
Output: