On the Modernizr home page, you also have the option to create a custom build. To do so, click on the Production – Configure your build button. While you will need some of the tests, you don’t necessarily need all of them. On this screen, choose the features you care about, then click generate. This will then create all of the code needed, which you can download and save to your computer. Add a script tag with a source that is equal to the file name of the download, and refresh your webpage. You’ll see that your custom build is working.
Check out the videos below, taken from our Modernizr training course by Ben Jaffe, to see Ben take you through the process of adding Modernizr to your web page and creating a custom build.