Modernizr
Sign in to saveModernizr is a JavaScript library that detects the features available in a user's browser. This lets web pages avoid unsupported features by informing the user their browser is not supported or loading a polyfill. Modernizr aims to provide feature detection in a consistent and easy to use manner that discourages the use of failure-prone browser sniffing.
Key facts
- Software.name
- Modernizr
- Software.title
- Modernizr
- Software.logo
- Modernizr logo.svg
- Software.author
- Faruk Ateş
- Software.developer
- Faruk Ateş, Paul Irish, Alex Sexton, Ryan Seddon, Patrick Kettner, Stu Cox, Richard Herrera, and contributors
- Software.latest release version
- 3.13.1
- Software.programming language
- JavaScript
- Software.genre
- JavaScript library
- Software.license
- MIT; it was dual-licensed MIT-BSD from June 14, 2010 to September 15, 2012
via Wikipedia infobox
Described at
TAPoR
tapor.ca →Link to a page describing this subject · 1,151 chars · not written by Vinony
Source code
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser. Read this file in Portuguese-BR here Read this file in Indonesian here Read this file in Spanish here Read this file in Swedish here Read this file in Tamil here Read this file in Kannada here Read this file in Hindi here Our Website is outdated and broken, please DO NOT use it ( but rather build your modernizr version from npm. Documentation Integration tests Unit tests Modernizr tests which native CSS3 and HTML5 features are available in the current UA and makes the results available to you in two ways: as properties on a global Modernizr object, and as classes on the element. This information allows you to progressively enhance your pages with a granular level of control over the experience. Breaking changes with v4 Dropped support for node versions classes. Only events on asynchronous tests are supported. Synchronous tests should be handled synchronously to improve speed and to maintain consistency. We guarantee that we'll only invoke your function once (per time that you call on ). We are currently not exposing a method for exposing the trigger functionality. Instead, if you'd like to have control over async tests, use the src/addTest feature, and any test that you set will automatically expose and trigger the on functionality. The first parameter takes a JSON object of options and feature-detects to include. See lib/config-all.json for all available options. We also provide a command line interface for building modernizr. To see all available options run: This section provides guidance on how to integrate Modernizr with various build tools and frameworks, making it easier to use in your projects. 3. Run the Gulp Task : Execute the task to generate the Modernizr build: Integrating Modernizr with your build tools can enhance your web applications by allowing you to detect and respond to the capabilities of the user's browser. Follow the steps above to set up Modernizr with your preferred build tool. This project adheres to the Open Code of Conduct. By participating, you are expected to honor this code.
Excerpt from the source-code README · 8,751 chars · not written by Vinony
~4 min read
Encyclopedic overview
10 sectionsContents
- Overview
- Function
- Running
- Limitations
- Examples
- Modernizr JavaScript example
- CSS example
- See also
- References
- External links
Modernizr is a JavaScript library that detects the features available in a user's browser. This lets web pages avoid unsupported features by informing the user their browser is not supported or loading a polyfill. Modernizr aims to provide feature detection in a consistent and easy to use manner that discourages the use of failure-prone browser sniffing.
==Overview== Many HTML5 and CSS 3 features are already implemented in at least one major browser. Modernizr determines whether the user's browser has implemented a given feature. This lets developers take advantage of new features that browsers support, yet create fallbacks for browsers that lack support. In both 2010 and 2011, Modernizr won the .net Award for Open Source App of the Year, and in 2011 one of its lead developers, Paul Irish, won the Developer of the Year award.
Excerpted from Wikipedia’s “Modernizr” article, available under the CC BY-SA 4.0 licence.