mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-18 15:41:05 +00:00
23 lines
582 B
JavaScript
23 lines
582 B
JavaScript
/*!
|
|
{
|
|
"name": "Beacon API",
|
|
"notes": [{
|
|
"name": "MDN Docs",
|
|
"href": "https://developer.mozilla.org/en-US/docs/Web/API/navigator.sendBeacon"
|
|
}, {
|
|
"name": "W3C Spec",
|
|
"href": "https://w3c.github.io/beacon/"
|
|
}],
|
|
"property": "beacon",
|
|
"caniuse": "beacon",
|
|
"tags": ["beacon", "network"],
|
|
"authors": ["Cătălin Mariș"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects support for an API that allows for asynchronous transfer of small HTTP data from the client to a server.
|
|
*/
|
|
define(['Modernizr'], function(Modernizr) {
|
|
Modernizr.addTest('beacon', 'sendBeacon' in navigator);
|
|
});
|