Skip to content

Instantly share code, notes, and snippets.

@nextechu
Created March 19, 2014 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nextechu/9648607 to your computer and use it in GitHub Desktop.
Save nextechu/9648607 to your computer and use it in GitHub Desktop.
Modernizr.load([{
test : /* boolean(ish) - Something that you want to test */,
yep : /* array (of strings) | string - The things to load if test is true */,
nope : /* array (of strings) | string - The things to load if test is false */,
both : /* array (of strings) | string - Load everytime (sugar) */,
load : /* array (of strings) | string - Load everytime (sugar) */,
callback : /* function ( testResult, key ) | object { key : fn } */,
complete : /* function */
}, ... ]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment