Quantcast
Channel: Topic Tag: error | WordPress.org
Viewing all articles
Browse latest Browse all 31591

silvoslaf on "[Plugin: W3 Total Cache] JavaScript minification error"

$
0
0

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

http://wordpress.org/plugins/w3-total-cache/


Viewing all articles
Browse latest Browse all 31591

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>