Softpedia
 

NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
TRENDING TODAY
Home > News > Webmaster > Web Blog

February 5th, 2013, 17:00 GMT · By Catalin Cimpanu

BLOG

Script of the Day: Conditionizr

SHARE:

Adjust text size:


Conditionizr is a JavaScript library for conditionally loading JS and CSS assets Enlarge picture - Conditionizr is a JavaScript library for conditionally loading JS and CSS assets
Inspired by the Modernizr library, Conditionizr provides a way to detect browser Retina and pixel ratio, and supply the appropriate JS and CSS assets.

Developed in a collaboration between Todd Motto and Mark Goodyear, Conditionzr was originally created to work on top of jQuery. But since v2, the library has been redone to work with Vanilla JS, achieving a 50% increase in speed as well.

If the scope of Conditionizr eludes you, the library works in a very simple and smart way. It will detect the user's browser features and depending on its supported properties, it will serve the appropriate CSS stylesheets and JavaScript files.

Using Conditionzr, developers will always be able to deliver the site version most appropriate for the user's devices, serving Retina or other 2x images to appropriate devices, while also sending polyfills and other shims to visitors with older browser versions.

Conditionizr is perfect for implementing a “progressive enhancement” on Web pages, and it helps developers acquire safe and recommended working habits by using it alongside Modernizr in their apps.

For Git freaks, Conditionizr development is also handled via GitHub as well.

Download Conditionizr from our Scripts section here.

TELL US WHAT YOU THINK:

727 hits · Link to this article · Print article · Send to friend · Subscribe to news

MUST-READ RELATED ARTICLES:


Script of the Day: Ratchet

Script of the Day: Remote Preview

Script of the Day: ChocolateChip

Script of the Day: Cassette

Script of the Day: Amazium

READER COMMENTS:



No user comments yet.
Be the first to express your opinion!
Copyright © 2001-2013 Softpedia. Contact/Tip us at

WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM