Class: Script

cycligent. Script

new Script(scriptId, callbackopt)

Represents a JavaScript script that loads asynchronously.
Parameters:
Name Type Attributes Default Description
scriptId string Dotted name or URL of script to load. See cycligent.url.
callback function <optional>
cycligent.imports.scriptLoaded The function to callback when the script loads successfully.
Properties:
Name Type Description
scriptId string Dotted name or URL of script to load. See cycligent.url.
callback function | undefined The function to callback when the script loads successfully.
url string The computed location (URL) of the script on the server (see cycligent.url).
interval int The ID for the interval that checks if the script load timed out.
loaded boolean True when the script has successfully loaded
debugging boolean True when script loading is being debugged, which causes extra messages to be logged.
Source: