Enquire.js

enquire.js
Enquire.js

Enquire.js is a lightweight, pure JavaScript library for handling media queries. It is less than 1kb when GZIP’d and minified, and has absolutely no dependencies. Yup, you read that right – no dependencies, not even jQuery! The most you will have to do is provide a matchMedia polyfill if you wish to
support browsers without a native implementation.

Rather then try and run through this awesome plugin myself you can read more about it on this guest post on CSS Tricks.

  • Resource Name

    Enquire.js

  • Resource Creator

    Nick Williams

Description

Enquire.js is a lightweight, pure JavaScript library for handling media queries. It is less than 1kb when GZIP'd and minified, and has absolutely no dependencies. Yup, you read that right - no dependencies, not even jQuery! The most you will have to do is provide a matchMedia polyfill if you wish to support browsers without a native implementation.

View on Github Download Resource

Subscribe to our Newsletter

Add your email address and receive an email every Friday covering off everything worth knowing about building your websites responsively.