WebAppers

/ best free open source web resources /

Graphic Resources

Serve Conditional JavaScript & CSS Files with Conditionizr

Posted · Category: MIT License, Tools

Conditionizr is a fast and lightweight (3KB) javascript utility that detects browser and pixel ratio, allowing you to serve conditional JavaScript and CSS files. Rebuilt from it’s jQuery predecessor, it’s now 50% faster. Combined with class name additions, Conditionizr has an integrated script and style loading facility, allowing you to specify which scripts and styles you’d like to load for which browser.

Browser sniffing is often considered unreliable, and Conditionizr was built to overcome this goal. The core functionality within Conditionizr is detecting and serving Internet Explorer legacy scripts and styles. With this in mind, using a similar method to the way Google Analytics detects browsers.

conditionizr

Requirements: JavaScript Framework
Demo: http://conditionizr.com/
License: MIT License

4 Comments
  • Blapidoup

    One very very bad thing to do when web developping.

    Please people, learn to code, and to code clean, do your job!

  • You make absolutely no sense.

  • Blapidoup

    Or not.

    Browser sniffing is bad. If you want to sniff, do it with features, that’s all.

  • Blapidoup

    Or not.

    Browser sniffing is bad. If you want to sniff, do it with features, that’s all.

Supported By

Deals

Web Browsers Icon Set
Food Icon Set
Flat Icon Set

Flat Icon Set

100 icons