conditionally load the JavaScript library if @support isn't available

conditionally load the JavaScript library (Based on David Walsh idea)

by Leo Lanese

HTML

<!-- based on David Walsh idea-->

JavaScript

/* 
   conditionally load the Modernizr feature detection library if @support is not available
   
*/

/*

(!) Better to be tested on Mozilla Firefox 22+ (Nightly)

window.supportsCSS || (window.CSS && window.CSS.supports) || document.write
('<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.0.6/modernizr.min.js"><\/script>');

*/