Conditionizr is a fast and lightweight (3KB) javascript utility that detects browser vendor - touch features and retina displays - allowing you to serve conditional JavaScript and CSS files. MIT Licensed.

Download v2.2.0 Documentation Fork project

Conditional loading

Conditional statements are a thing of the past, let Conditionizr dynamically load legacy files.

Retina detection

Top notch retina detection for progressive CSS optimisations and optional file loading.

Touch detection

Detect a touch device and load scripts that will allow it to behave differently.

Dynamic classes

Conditionizr appends the browser name in use so you can optimise with CSS overrides.

Polyfill queuing

With intelligent 'ieLessThan' functionality, queue your polyfills for the right IE browsers.

Browsers and platforms

Conditionizr gives you modern browser and platform HTML tag classes for ultimate fine-tuning.

.NET Awards