Created
August 24, 2012 11:57
-
-
Save stephanie-walter/3449760 to your computer and use it in GitHub Desktop.
Modernizr conditionnal Load media queries polyfill
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** 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