UNPKG

modernizr

Version:

Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.

23 lines (22 loc) 582 B
/*! { "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); });