UNPKG

modernizr

Version:

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

24 lines (23 loc) 661 B
/*! { "name": "Navigation Timing API", "property": "performance", "caniuse": "nav-timing", "tags": ["performance"], "authors": ["Scott Murphy (@uxder)"], "notes": [{ "name": "W3C Spec", "href": "https://www.w3.org/TR/navigation-timing/" },{ "name": "HTML5 Rocks article", "href": "http://www.html5rocks.com/en/tutorials/webperformance/basics/" }], "polyfills": ["perfnow"] } !*/ /* DOC Detects support for the Navigation Timing API, for measuring browser and connection performance. */ define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) { Modernizr.addTest('performance', !!prefixed('performance', window)); });