mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-18 15:41:05 +00:00
26 lines
776 B
JavaScript
26 lines
776 B
JavaScript
/*!
|
|
{
|
|
"name": "Web Workers",
|
|
"property": "webworkers",
|
|
"caniuse": "webworkers",
|
|
"tags": ["performance", "workers"],
|
|
"notes": [{
|
|
"name": "W3C Spec",
|
|
"href": "https://www.w3.org/TR/workers/"
|
|
}, {
|
|
"name": "HTML5 Rocks Tutorial",
|
|
"href": "https://www.html5rocks.com/en/tutorials/workers/basics/"
|
|
}, {
|
|
"name": "MDN Docs",
|
|
"href": "https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers"
|
|
}],
|
|
"polyfills": ["fakeworker", "html5shims"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
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.
|
|
*/
|
|
define(['Modernizr'], function(Modernizr) {
|
|
Modernizr.addTest('webworkers', 'Worker' in window);
|
|
});
|