WordPress.org

Support

Support » Plugins and Hacks » JavaScript minification error

JavaScript minification error

  • silvoslaf
    Member

    @silvoslaf

    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/

  • The topic ‘JavaScript minification error’ is closed to new replies.