modernizr
Version:
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
17 lines (16 loc) • 474 B
JavaScript
/*!
{
"name": "ServiceWorker API",
"property": "serviceworker",
"notes": [{
"name": "ServiceWorkers Explained",
"href": "https://github.com/slightlyoff/ServiceWorker/blob/master/explainer.md"
}]
}
!*/
/* DOC
ServiceWorkers (formerly Navigation Controllers) are a way to persistently cache resources to built apps that work better offline.
*/
define(['Modernizr'], function(Modernizr) {
Modernizr.addTest('serviceworker', 'serviceWorker' in navigator);
});