Compressing JS and CSS

Use a tool like Gulp to minify using NodeJS packages. Gulp Uglify for JS, Gulp CSS Min for CSS.

As for GZip, you’ll need to enable that on your server config – Apache using mod_deflate in .htaccess and In IIS, you can set it up in “website properties” (Tab Services), and then allow “compress application files”. Finally check and see if you have it enabled using a service like Check GZip Compression.

The article My Advanced Gulp Workflow for WordPress Themes will probably help you get a better understanding of the process but keep in mind there are several ways to approach this based on your needs.

Grunt or Webpack are also alternative task runners. Go the app route with something like Koala, LiveReload or Crunch. Or minify JS online with something like Google Closure Compiler.

tech