O'Reilly logo

Learning Modernizr by Adam Watson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Customizing to Your Unique Needs

In this chapter we'll be covering some of the extras provided by Modernizr that go beyond just feature detection, as well as customizing the library to suit your individual needs. Up to this point we've used the library as a development build. The development build includes all of the feature tests and library extras, which will be covered in a bit more detail as well. As a performance goal however, we want to keep any overhead as light as possible. We've lightened overhead (download size) significantly by reducing HTTP requests, when we converted some images to be purely CSS. Now we can go a step further and lighten the file size of the Modernizr library by building a custom version with only the features ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required