Enquire.js is a JavaScript library I created for dealing with media queries in JavaScript.
A comÂmon probÂlem in responÂsive design is the linkÂing of CSS3’s media queries and JavaScript. For instance on a larger screen we can restyle, but it might be useÂful to use JavaScript and pull in difÂferÂent conÂtent at the same time, e.g. higher qualÂity images. With CSS tranÂsiÂtions, specifÂiÂcally their tranÂsiÂtioÂnEnd events, we can marry up our media queries and JavaScript perÂfectly, withÂout resortÂing to winÂdow resize events.