I'm using Modernizr to detect browser features. But this time when I started a project it seems that Modernizr does not apply its classes to the html.

I just realized when I replace my local source to the JS:

<script src="js/libs/modernizr-2.7.1.js"></script>

with:

<script src="http://ajax.cdnjs.com/ajax/libs/modernizr/1.7/modernizr-1.7.min.js"></script>

Then it works like a charm. Why local copy of Modernizr does not work?

CHMODS are 777 and I'm viewing the source by Shift+CTRL+I in Firefox.

有帮助吗?

解决方案

sounds like your build doesn't have the cssclasses option included from the builder.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top