manifest / performance / nginx-http-concat
CSS Concat
WordPress plugin to perform CSS and JavaScript concatenation of individual script files into one resource request.
by Automattic · github.com/automattic/nginx-http-concat · website
★ 120stars
37forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/automattic/nginx-http-concat/archive/refs/heads/master.zipOverview
WP.com plugin to perform CSS and Javascript concatenation of individual scripts into a single script.
Installation & Configuration
-
Copy the ‘http-concat’ directory and its contents to your WordPress plugins directory.
-
Configure the NGINX server to perform the concatenation step in the process by adding the following to your WordPress installations NGINX configuration:
location /_static/ {
fastcgi_pass unix:/var/run/fastcgi.sock;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/wp-content/plugins/http-concat/ngx-http-concat.php;
}
- Once this is done the installation is ready for use and you can enable/disable the JS and/or CSS concatenation via the plugins interface of your WordPress installation.