4

I want to combine all my CSS and JS files.
Given the fact that I use different plugins I don't see a way to do this manually because after an update of the plugin I have to start all over.

So I did some Googling but didn't find a satisfying answer to my problem.

Can anybody tell me how to combine all my CSS and JS files?
I have no experience with this so... kinda stuck.

M.

5

Try using Autoptimize WordPress plugin or W3 Total Cache WordPress plugin, with W3 Total cache enable minify option. They both support combining and minifying all enqueued Scripts (JS) and Stylesheet (CSS)

|improve this answer|||||
  • Sorry for my late reply. Thank you for your answer. I went with WP Fastest Cache – Interactive Jun 27 '16 at 10:17
2

you can use pakd.io, this site allows you add multiple css/js files into one package, the package generates a single file with the contents of the files you add with the order you choose.

for instance let's say you have https://example.com/css1.css and css2.css, you can go there and create a new package of type : css, add your files to it.

it will minify the files as well, so you will get a fine tuned single css instead of multiple css, this should reduce the number of head requests per page.

it will do the same for you js files. give it a try.

|improve this answer|||||
  • This is quite interesting. Thank you will take a look! – Interactive Mar 1 '18 at 8:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.