JavaScript minification error
-
We have encountered an issue with the minification of JS.
Our original code looks something like this:
“abc” + (+new Date()) + “abc” // which works, (+new Date()) is a shorthand for getting a timestamp
which we then minify the code with Google’s Closure and get this:
“abc”+ +new Date+”abc” // which still works
However one might want to minify the already minified JS with your cache plugin and they will get:
“abc”++new Date+”abc” // which doesn’t work any more
Is it that we’re seeing this because of some outdated version or is this still an issue with the minifier your plugin is using?
Thanks!
Silvo
- The topic ‘JavaScript minification error’ is closed to new replies.