6

Can anyone help me understand why W3 Total Cache Plugin for WordPress on this website isn't combining the CSS & JS (respectively)?

Here are my settings: Page Cache: Enabled, Disk Enhance Minify: Enabled, Auto, Disk, Default, JSMin, Default

Spencer Hill
  • 1,043
  • 2
  • 15
  • 38
  • Do you mean why isn't it merging them into one file? That wouldn't make sense since they're different content types. – Chad Hedgcock Dec 19 '13 at 03:49
  • I meant respective to their languages. If you see the link you'll see that there are numerous CSS files that should be combined into one file. Same with the JS. – Spencer Hill Dec 19 '13 at 04:24
  • Are you using any other form of minifying or caching? Did you check the Advanced settings on minification in the W3 Total Cache settings? – JCL1178 Jan 01 '14 at 22:20
  • I wasn't at the time I experienced this issue. And yes, I reviewed the Advanced Settings for Minification in W3 Total Cache. Thanks for taking the time to reply. – Spencer Hill Jan 02 '14 at 19:29

1 Answers1

4

I use manual disk minify. In my situation w3 total combined JavaScript and CSS. Therefore I recommended to use manual minify (disk). Then go to w3 total minify tab and click on the top "Help" button and add all the necessary js and CSS.

Once added js and/or css remove if there's any queries strings (add js and css direct link) eg:- wp-content/theme/mytheme/style.css

This could break your site. Therefore add js and css step by step.

MaxBro57
  • 111
  • 2
  • 2
  • 9
  • So you're suggesting I manually specify each CSS and JS file? – Spencer Hill Feb 12 '14 at 20:22
  • Yes. It's more reliable – MaxBro57 Feb 12 '14 at 23:36
  • 1
    Okay, thanks for the suggestion. I suppose I'll try it but ultimately I'd like to understand why it's not working presently. I have numerous Plugins that include styles and scripts and manually specifying those is not ideal since we add and remove scripts from time to time. – Spencer Hill Feb 13 '14 at 16:17
  • If you're worrying about plugin update, it's not an issue (most of the cases). After you place necessary plugin direct link, after the update w3tc automatically detect the new css and js and minify and combined. Yes, after plugin uninstalled you have to manually remove that plugin css and/or js. But it need few minutes. Still i can say manual method more reliable than automatic. – MaxBro57 Feb 13 '14 at 16:26
  • Thanks for clarifying, but I'm referring to installing new Plugins. – Spencer Hill Feb 13 '14 at 19:47
  • I would also highly recommend Manual minifying. It may take a little longer depending on the size of your website, and may take some trial & error to know in what order to load the JS/CSS but ultimately your site performance will be better for it :-) – michaelmcgurk Nov 27 '16 at 08:00