[Plugin: W3 Total Cache] *Important* parsing found with automatic minify
-
I thought I would let you know that I found a javascript parsing error when automatic minify was selected. In one of the files that was generated from my particular set of .js, I saw that the following code was broken because at some point it turned into a comment (/*) because of the syntax. Here’s what I mean:
return target;},ajaxSettings:{url:ajaxLocation,isLocal:rlocalProtocol.test(ajaxLocParts[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"}
At the ending part “*/*” (and onwards past the characters /*) it turned into a comment all the way to the end of the code, resulting in breaking the first part too because it never completed without having a closing tag or statement.
I’ve already seen peoples’ comments about turning automatic minify off, which is a shame since that helps reduce load automatically, but maybe you could include a little bug fix in the future where any occurrence of */* or /* could be replaced by the html entity for the forward slash character (ampersand hash 47 semicolon).
Thanks for such an amazing plugin otherwise!
- The topic ‘[Plugin: W3 Total Cache] *Important* parsing found with automatic minify’ is closed to new replies.