Some optimisations + compressed version

This adds some optimisations and compressed file to https://github.com/joomla/joomla-cms/pull/4085