title: Modernizer conditional load of polyfill
body: <p>I am using a javascript library that uses CustomEvent that doesnt seem to be fully supported in Android 4.1. So I thought I'd use Modernizer to conditionally load a CustomEvent polyfill in browsers where it is missing.</p>
  
  <ul>
  <li>I went here: <a href="https://modernizr.com/download?customevent-dontmin" rel="nofollow">https://modernizr.com/download?customevent-dontmin</a></li>
  <li>Selected 'CustomeEvent', </li>
  <li>Downloaded the suggested EventListner.js polyfill,  </li>
  <li>Pressed 'Build' and downloaded the custom Modernizer. </li>
  <li>I added to my index.html: <code>&lt;script src="js/modernizr-custom.js"&gt;&lt;/script&gt;</code> </li>
  <li><p>And added this to my javascript:</p>
  
  <p>Modernizr.load({
    test: Modernizr.customevent,
    nope: 'EventListener.js'
  });</p></li>
  </ul>
  
  <p>But I get an error: <code>TypeError: Modernizr.load is not a function</code></p>
  
  <p>Can someone please confirm I've not gone completely off piste here and I'm using modernizer correctly? And do I have to download another script or something to get the Modernizer.load function? (Modernizer seems to have changed since similar questions were asked). </p>