Skip to content

Instantly share code, notes, and snippets.

@mattstauffer
Created July 19, 2012 17:15
Show Gist options
  • Save mattstauffer/3145416 to your computer and use it in GitHub Desktop.
Save mattstauffer/3145416 to your computer and use it in GitHub Desktop.
Modernizr/Respond.js simple test
<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