[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ru/docs/Web/API/WorkerGlobalScope/importScripts [Back]  [Original]

WorkerGlobalScope.importScripts() - API | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

WorkerGlobalScope.importScripts()

Baseline Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 ..

importScripts() WorkerGlobalScope , -.

In this article

js
self.importScripts('foo.js');
self.importScripts('foo.js', 'bar.js', ...);

String , . URL HTML .

.

NetworkError MIME ( text/javascript).

, foo.js, :

js
importScripts("foo.js");

importScripts() self.importScripts() importScripts() .

Specification
HTML
# dom-workerglobalscope-importscripts-dev

WorkerGlobalScope

Web Proxy Viewer  |  New URL  |  Original Page