1 | /*!
|
2 | {
|
3 | "name": "Web Workers",
|
4 | "property": "webworkers",
|
5 | "caniuse": "webworkers",
|
6 | "tags": ["performance", "workers"],
|
7 | "notes": [{
|
8 | "name": "W3C Spec",
|
9 | "href": "https://www.w3.org/TR/workers/"
|
10 | }, {
|
11 | "name": "HTML5 Rocks Tutorial",
|
12 | "href": "https://www.html5rocks.com/en/tutorials/workers/basics/"
|
13 | }, {
|
14 | "name": "MDN Docs",
|
15 | "href": "https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers"
|
16 | }],
|
17 | "polyfills": ["fakeworker", "html5shims"]
|
18 | }
|
19 | !*/
|
20 | /* DOC
|
21 | Detects support for the basic `Worker` API from the Web Workers spec. Web Workers provide a simple means for web content to run scripts in background threads.
|
22 | */
|
23 | define(['Modernizr'], function(Modernizr) {
|
24 | Modernizr.addTest('webworkers', 'Worker' in window);
|
25 | });
|