UNPKG

modernizr

Version:

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

22 lines (21 loc) 617 B
/*! { "name": "Beacon API", "notes": [{ "name": "MDN documentation", "href": "https://developer.mozilla.org/en-US/docs/Web/API/navigator.sendBeacon" },{ "name": "W3C specification", "href": "https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/Beacon/Overview.html" }], "property": "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); });