Skip to content

Instantly share code, notes, and snippets.

@stephanie-walter
Created August 24, 2012 11:57
Show Gist options
  • Save stephanie-walter/3449760 to your computer and use it in GitHub Desktop.
Save stephanie-walter/3449760 to your computer and use it in GitHub Desktop.
Modernizr conditionnal Load media queries polyfill
/** Detect support for media queries (all size and browser) and add a polyfill for browser that don't support it
Find the polyfill under http://code.google.com/p/css3-mediaqueries-js/
This required the modernizr load to be in the build
**/
Modernizr.load([{
test : Modernizr.mq('only all'),
yep : '',
nope : 'css3-mediaqueries.js',
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment