Skip to content
This repository has been archived by the owner on Nov 23, 2018. It is now read-only.

Media Queries Polyfill

artibella edited this page Aug 3, 2012 · 2 revisions

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: 0px)'),
  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.