MyBB Community Forums

Full Version: Minify and compress css and js
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can someone please make a plugin that compresses css and js with gzip. And also minifies the css (remove all blank spaces and comments, etc.) and using a minify script to minify the js.

This will greatly help with the speed of a forum and also bring down the bandwidth usage.

Thanks.

PS. for Mybb 1.6. And I'm not willing to pay sorry Angel
You can enable GZip without any plugins.

Admin CP > Server and Optimization Options > Use GZip Page Compression? > Yes.
Yes do as faviouz said it works perfectly Smile
According to YSlow only the php (ie index page) pages gets compressed if you activate that function. The css stylesheets and js from the cache doesn't get compressed.
You could minify them manually. Download the files and run them through a compressor tool or something.
Yeah, I know. But a plugin that can do all those things at the server side would be much more convenient. And would make changes faster. Than editing something -> minify it -> apply the changes.

Can I change the stylesheets' extension to .php and add code that would gzip it?
You can Compress the CSS with MyBBThemes.co.uk CSS compressor.
http://www.mybbthemes.co.uk/pages.php/css-compressor