Conditionizr - A jQuery Plugin For Conditional-Free Legacy, Retina, Script & Style Loading
What Problem Does It Solve?
Now with Conditionizr, there is no need to soil your markup with conditional HTML tags, Conditionizr takes care of this process.
What’s Under The Hood?
Conditionizr also allows you to detect the platform which your end user is using – it could be Mac OS X, Windows, Linux or Unix and then lets you specify specific assets to load for those platforms. This is especially useful when the same browser has display quirk on different platforms. Conditionizr steps in and allows you to solve this problem as well.
What’s more with Conditionizr is that it also allows you to pixel ratios of end-user browsers and allows you to serve retina-ready assets for your website to your users.
Conditionizr is also Modernizr compatible and is build using to be as reliable in browser sniffing as possible, using methods similar to what’s used in Google Analytics. Conditionizr weight in at only 3KB and is sure to be an asset in your web developer’s toolbox.
Demo: http:/ / conditionizr. com/
License: MIT License
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)