Conditionizr for jQuery – Conditional Loader For Scripts And Styles – noupe
I use modernizr on most of the scratch site builds and this will be used right along with it going forwards…
Conditionizr – Perfect Supplement To Modernizr
First things first – Conditionizr does not intend to replace Modernizr, nor would it be able to. Instead is has been developed as the perfect supplement, so that both solutions work best when used cooperatively. Conditionizr is based on the same classes approach Modernizr is, thus making integration seamless.
Through the use of javascript-based feature detection, Conditionizr is not only able to determine which browsers are in use on the client-side but also which OS they are running on and whether the device driving it is retina-capable or not. According to the found possibilities Conditionizr adds corresponding classes to the HTML elements and cares for necessary CSS and JavaScript to optimally support the findings.
Instead of adding the conditions to the markup, Conditionizr works completely markup-free. All you have to do is call the script right after jQuery and Modernizr (if you want to take advantage of that) and add a configuration part to the head of your document. All supported browsers can be configured to how far the influence of Conditionizr shall go. You can choose to en- or disable the use of specific classes, styles and scripts separately. In the same way you can define whether Conditionizr shall take care of OS and retina detection.
Conditionizr for jQuery – Conditional Loader For Scripts And Styles.
Reply
You must be logged in to post a comment.