Support
fieldsA range of useful supported by the current browser capabilities and features.
support.browser
ObjectConvenience replacement for the now deprecated jQuery.browser. It returns an object with the browser identifier initialized as a boolean property and a version. The identifiers are identical to jQuery ones, e.g. "webkit", "opera", "msie", "edge" and "mozilla". In addition WebKit browsers will return their name e.g. "safari" and "chrome".
support.devicePixelRatio
NumberReturns the current device's Device to Pixel Ratio. Doesn't work in Windows Phone 8, where IE10 doesn't support it.
Default: 1
support.hasHW3D
BooleanReturn true if the browser supports 3D transitions and transforms.
support.hasNativeScrolling
BooleanReturns true if the browser supports overflow-scrolling CSS property (currently only iOS 5+).
support.mobileOS
ObjectReturns a number of properties that identify the current mobile browser. Parses navigator.userAgent to do it. False on desktop.
support.placeholder
BooleanReturns true if the browser supports input placeholders.
support.pointers
BooleanReturn true if the browser supports pointer events (IE10 and Metro apps currently).
support.scrollbar
FunctionChecks for the browser scrollbar width, returns scrollbar width in pixels, 0 if no scrollbars available (e.g. in mobile).
support.touch
BooleanReturn true if the browser supports touch events.
support.zoomLevel
NumberReturns the current zoom level on a mobile browser (returns 1 on desktop).
Default: 1