Now in version 2.6.2, Modernizr is a lightweight 42 Kb download in its commented, uncompressed development version; allowing users to learn from the tool as they develop their sites with it. Once the desired settings are attained, the production build toolkit lets users choose only the tests they need, streamlining file size (and load time) even further.
Modernizr supports (and optionally includes) YepNope.js for conditional loading of external .js and .css resources — a big benefit when targeting the latest browser features.
A variety of documentation is available, including a guide to getting started, as well as hints on using Modernizr with HTML5 and CSS3, plus optimal methods for front-end development, a guide to cross-browser polyfills and more, in a robust resources section.
“Use progressive enhancement wherever you can and don’t sacrifice accessibility for convenience or performance,” a Modernizr spokesperson notes. “With the knowledge that Modernizr gives you, you can take advantage of these new features in the browsers that can render or utilize them, and still have an easy and reliable means of controlling the situation for the browsers that cannot.”
Modernizr brings a range of tools to developers while facilitating conditional coding. Give it a try and see if it helps your site gain a competitive, backwards-compatible edge.