I have, now 😉
The template is a script type=”text/x-handlebars-template”, which is not excluded by default and the JS optimizer can’t handle it because it’s not javascript. Add “text/x-handlebars-template” (or “epoch”) to your JS-optimization exclusion list and the problem goes away.
frank
Wow, that was fast! Thanks very much for the quick troubleshooting and fix.
I just added that exclusion and it does correct the problem.
Thanks for figuring that out, Frank!
So I just added logic not to aggregate any weird script type (i.e. there has to be no type or it should be text/javascript) to the development version. Would be great if you could download and install this version, removing the exclusion from above and see if that fixes things.
frank
Good! I will test and report back.
Autoptimize-master works with the Epoch plugin activated without the “text/x-handlebars-template” exclusion. The code within the following script tags is untouched.
`<script id=”epoch-comment-template” type=”text/x-handlebars-template”>
…
</script>’
However, it should be safe to remove line endings within that script, and doing that might be enough to keep Google from complaining that the HTML isn’t minified.
ok, thanks for the feedback!
frank