WordPress W3 Total Cache Plugin not combining CSS & JS
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.
Spencer Hill
For professional information about me you can refer to my LinkedIn profile.
Updated on June 18, 2022Comments
-
Spencer Hill almost 2 years
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 about 10 yearsSo you're suggesting I manually specify each CSS and JS file?
-
MaxBro57 about 10 yearsYes. It's more reliable
-
Spencer Hill about 10 yearsOkay, 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.
-
MaxBro57 about 10 yearsIf 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.
-
Spencer Hill about 10 yearsThanks for clarifying, but I'm referring to installing new Plugins.
-
michaelmcgurk over 7 yearsI 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 :-)