W3 Total Cache not removing comments from JavaScript & CSS
-
When I enable minification of JS and CSS, W3 Total Cache inserts line-number comments!
I’ve tried JSMin, YUI Compressor, and Closure Compiler — they all yield the same result. Here’s an example from the combined CSS file (/wp-content/w3tc/min/48c331e6.83ab9a.css)
/* 14 */ html, body, div, span, applet, object, iframe, /* 15 */ h1, h2, h3, h4, h5, h6, p, blockquote, pre, /* 16 */ a, abbr, acronym, address, big, cite, code, /* 17 */ del, dfn, em, img, ins, kbd, q, s, samp, /* 18 */ small, strike, strong, sub, sup, tt, var, /* 19 */ b, u, i, center, /* 20 */ dl, dt, dd, ol, ul, li, /* 21 */ fieldset, form, label, legend, /* 22 */ table, caption, tbody, tfoot, thead, tr, th, td, /* 23 */ article, aside, canvas, details, embed, /* 24 */ figure, figcaption, footer, header, hgroup, /* 25 */ menu, nav, output, ruby, section, summary, /* 26 */ time, mark, audio, video { /* 27 */ margin: 0; /* 28 */ padding: 0; /* 29 */ border: 0; /* 30 */ font: inherit; /* 31 */ font-size: 100%; /* 32 */ vertical-align: baseline; /* 33 */ }
The combined JavaScript file looks similar:
/* jquery.cycle.js */ /* 101 */ /* 102 */ function triggerPause(cont, byHover, onPager) { /* 103 */ var opts = $(cont).data('cycle.opts'); /* 104 */ var paused = !!cont.cyclePause; /* 105 */ if (paused && opts.paused) /* 106 */ opts.paused(cont, opts, byHover, onPager); /* 107 */ else if (!paused && opts.resumed) /* 108 */ opts.resumed(cont, opts, byHover, onPager); /* 109 */ }
What’s going on?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘W3 Total Cache not removing comments from JavaScript & CSS’ is closed to new replies.