Created
July 19, 2012 17:15
-
-
Save mattstauffer/3145416 to your computer and use it in GitHub Desktop.
Modernizr/Respond.js simple test
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
<script> | |
// Using Modernizr (http://modernizr.com/) and respond.js | |
// (https://github.com/scottjehl/Respond/), test the browser for | |
// Media Query compatibility and load respond.js polyfill if necessary. | |
Modernizr.load([ | |
{ | |
test: Modernizr.mq('only all'), | |
nope: 'js/vendor/respond.min.js' | |
} | |
]); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment