-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
83 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
/*! | ||
{ | ||
"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); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,29 @@ | ||
/*! | ||
{ | ||
"name": "Web Workers", | ||
"property": "webworkers", | ||
"caniuse" : "webworkers", | ||
"tags": ["performance", "workers"], | ||
"notes": [{ | ||
"name": "W3C Reference", | ||
"href": "http://www.w3.org/TR/workers/" | ||
}, { | ||
"name": "HTML5 Rocks article", | ||
"href": "http://www.html5rocks.com/en/tutorials/workers/basics/" | ||
}, { | ||
"name": "MDN documentation", | ||
"href": "https://developer.mozilla.org/en-US/docs/Web/Guide/Performance/Using_web_workers" | ||
}], | ||
"polyfills": [{ | ||
"fakeworker.js": "https://code.google.com/p/fakeworker-js/" | ||
}] | ||
} | ||
!*/ | ||
/* 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', !!window.Worker); | ||
}); |