WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
JavaScript minification error (1 post)

  1. silvoslaf
    Member
    Posted 7 months ago #

    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/

Reply

You must log in to post.

About this Plugin

About this Topic