Zum Hauptinhalt springen

Documentation

IMPORTANT

This is the outdated SI-documentation which will be adapted soon. A huge part may be obsolete!

Optimizing Assets On Joomla

Since most of these Javascript files are served through it's own absolute URL, the only way to ensure that these files are served with gzip compression is by adding the block of codes below in your .htaccess file or Nginx configuration file:

Apache (.htaccess)

AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript

Nginx

gzip on;
gzip_disable "msie6";

gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;


By adding the codes above, there is a drastic reduction on your script sizes! On several Joomla! sites which we tested, wadding the codes above reduced the Javascript file from 1.1mb to 260kb. That's almost 450% reductions in size!

Note
The codes above would work on any of our extensions and as a matter of fact, it works for any Javascripts being rendered on your site.