Loads and executes one or more scripts into the worker specified by a URL.
Syntaxvar retval = WorkerGlobalScope.importScripts(urls);
- urls [in]
This method can return one of these values.
The URL that is loaded must resolve according to the WorkerLocation of the worker. More than one script can be loaded in a sequence of URLs. The loading and executing of scripts is synchronous. If any script throws an exception, subsequent scripts will not load.