Please Help. ClientDependency and Modernizr-1.6.min.js
I'm trying to use ClientDependency to combine and minify all of my css and javascript files. It's working great with one exception. IE7 and IE8 are wonky because the ClientDependency won't load my Modernizr-1.6.min.js file. This javascript fixes HTML5 tags so that they work as if they were div tags in IE7 and IE8.
I have only 2 javascript files that I'm loading currently. The first one loads fine. But the Modernizr-1.6.min.js will not load. I've tried loading it first, second, all by itself. when you check the javascript file output by ClientDependency that script is not there.
Does anybody have any idea why it would do this? For now I've removed modernizr from the ClientDependency call and I've
just added a script tag to the template. But I wanted to reduce the http
calls to a minimum.
I was having the same problems with the Modernizr 2.0 dev build so I did a little experimenting, and there's something in the script that crashes the ClientDependency JS minifier. When I tried to run the Modernizr script through the JSMin.CompressJS method it threw an exception with the message "Error: JSMIN unterminated Regular Expression literal : 10." If you download a custom build of Modernizr 2.0 (which is pre-minified) it doesn't seem to suffer from the issue.
Please Help. ClientDependency and Modernizr-1.6.min.js
I'm trying to use ClientDependency to combine and minify all of my css and javascript files. It's working great with one exception. IE7 and IE8 are wonky because the ClientDependency won't load my Modernizr-1.6.min.js file. This javascript fixes HTML5 tags so that they work as if they were div tags in IE7 and IE8.
I have only 2 javascript files that I'm loading currently. The first one loads fine. But the Modernizr-1.6.min.js will not load. I've tried loading it first, second, all by itself. when you check the javascript file output by ClientDependency that script is not there.
Does anybody have any idea why it would do this? For now I've removed modernizr from the ClientDependency call and I've just added a script tag to the template. But I wanted to reduce the http calls to a minimum.
Thanks for any help you can give.
I was having the same problems with the Modernizr 2.0 dev build so I did a little experimenting, and there's something in the script that crashes the ClientDependency JS minifier. When I tried to run the Modernizr script through the JSMin.CompressJS method it threw an exception with the message "Error: JSMIN unterminated Regular Expression literal : 10." If you download a custom build of Modernizr 2.0 (which is pre-minified) it doesn't seem to suffer from the issue.
is working on a reply...