Minify and compress css and js
#1
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
Reply
#2
You can enable GZip without any plugins.

Admin CP > Server and Optimization Options > Use GZip Page Compression? > Yes.
Reply
#3
This user has been denied support. This user has been denied support.
Yes do as faviouz said it works perfectly Smile
Reply
#4
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.
Reply
#5
You could minify them manually. Download the files and run them through a compressor tool or something.
Reply
#6
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?
Reply
#7
You can Compress the CSS with MyBBThemes.co.uk CSS compressor.
http://www.mybbthemes.co.uk/pages.php/css-compressor
I'm not here often, shoot a PM or whatever if you want my discord.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)