modernizr
Version:
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
21 lines (18 loc) • 425 B
JavaScript
/*!
{
"name": "Shared Workers",
"property": "sharedworkers",
"caniuse" : "sharedworkers",
"tags": ["performance", "workers"],
"notes": [{
"name": "W3C Reference",
"href": "http://www.w3.org/TR/workers/"
}]
}
!*/
/* DOC
Detects support for the `SharedWorker` API from the Web Workers spec.
*/
define(['Modernizr'], function( Modernizr ) {
Modernizr.addTest('sharedworkers', !!window.SharedWorker);
});