Skip to content

Media Queries Polyfill

shichuan edited this page Apr 4, 2011 · 1 revision

Media queries polyfill is used to make media queries work cross-browser. It's called in the index.html in the following way:

yepnope({
  test : Modernizr.mq('(min-width)'),
  nope : ['js/libs/respond.min.js']
});

First, Modernizr is used to detect if media queries are supported, if not, yepnope (aka Modernizr loader) will be used to load the polyfill respond.js.