importScripts

external fun importScripts(vararg urls: String)(source)

The importScripts() method of the WorkerGlobalScope interface synchronously imports one or more scripts into the scope of a classic worker (a worker constructed from a classic script).

MDN Reference


external fun importScripts(vararg urls: URL)(source)