W3 Total Cache
JavaScript minification error (1 post)

  1. silvoslaf
    Posted 2 years 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?



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic