Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Option to stop Modernizr converting "no-js" to "js" #1385
I would like to propose a new option to govern this default behaviour. Perhaps:
If true (default behaviour for backwards compatibility) it replaces
This will increasingly become more of an issue as the performance gap between ES6-supporting UAs and those that support only ES3 challenges developers to write increasingly bizarre code to take advantage of ES6 features while somehow continuing to provide some capability for legacy clients.
We also wish to support a more complex use case in which there are multiple cuts the mustard tests - eg one for dynamic advertising and analytics, and a higher one for everything else.
If there's agreement from maintainers on an approach I'm happy to code it up and submit a PR.
changed the title from
Option to stop Modernizr converting "js" to "no-js"
Option to stop Modernizr converting "no-js" to "js"
Jul 4, 2014
Is there a reason you need to hook into the
You might conceivably choose to only run Modernizr if your CTM test passes, in which case
However, for our purposes I'd also be perfectly happy with a simple on/off without the ability to supply a custom label.
would an opt-out toggle around here that would just not touch