Our standard Patternslib bundles include the feature-detection module, which loads the "Modernizr" library.
Nowadays this is not necessary anymore. Modern browsers already include a lot of feature detection code via CSS at-rules. Also the JavaScript detection via the js class is not necessary aynmore - this can be done with the scripting at-rule.
Also @emmanuelkaufmann already works on CSS code which does not depend on Modernizr anymore.
If we make the Modernizr library optional, we avoid to load the minified 30kB modernizr library and spare a lot of feature detection tests, which are unnecessary these times.
See:
Our standard Patternslib bundles include the
feature-detectionmodule, which loads the "Modernizr" library.Nowadays this is not necessary anymore. Modern browsers already include a lot of feature detection code via CSS at-rules. Also the JavaScript detection via the
jsclass is not necessary aynmore - this can be done with thescriptingat-rule.Also @emmanuelkaufmann already works on CSS code which does not depend on Modernizr anymore.
If we make the Modernizr library optional, we avoid to load the minified 30kB modernizr library and spare a lot of feature detection tests, which are unnecessary these times.
See: