Setup Example

This example shows how you can use enquire.js to register a setup callback against a media query in javascript.

The setup callback is executeded as soon as a media query is registered, and only ever executed once. For this reason, you should put all your expensive one-time operations in the setup callback.

State

Unmatched
Setup

Code