IMG_1506

Overriding Modernizr

Modernizr is a great tool for browser feature detection, but there are times when it’s useful to override Modernizr’s detection and force the configuration of features that are available, both on the Javascript object and also the CSS marker classes. An example of this is when using Chrome Dev Tools to write fallback functionality for older mobile devices – Windows Mobile 7.5 and a Galaxy Ace with Android 2.3 have been problems for me lately.

To help with this I wrote a simple modernizr-override helper to take a predefined Modernizr configuration and inject it on top of the detected features in Chrome.

To get it, and see how to use it, head over to the Github repo here.

Leave a Reply

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax