You must be wondering how to optimize your Mybb forum to get better performance score at Google Pagespeed. This can led better rankings in search engines and performance boost with faster page loads for your forum visitors.
Here comes a short guide which can improve your overall forum speed and performance as well.
How to SpeedUp Mybb Performance
Choose Reliable Hosting : Before choosing webhost you should be careful about webhost performance, mostly cheap hosting costs you in terms of bad performance. Always choose reliable hosting with the help of user reviews.
Enable GZIP Compression :Go into your Admin CP > Server and Optimization settings and set ‘Enable GZIP compression’ to ‘yes’, and set the compression level to 4 so that it wont increase server load and gives performance boost. Then login to your FTP account and download htaccess.txt file and rename it .htaccess if you haven’t done yet. Now open .htaccess file with notepad or other editors and put the codes given below.
Leverage Browser Caching : If running your Mybb on Apache server then you can use mod_expires module for caching in local browser as per file extensions. Browser cache option reduces http request by utilizing previously fetched content.
# If Apache is compiled with built in mod_deflade/GZIP support
# the client faster.
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE image/svg+xml
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/x-icon A2592000
ExpiresByType text/plain A2592000
ExpiresByType text/css A2592000
ExpiresByType application/pdf A2592000
ExpiresByType application/x-shockwave-flash A2592000
Optimize Images : Use image optimizer to reduce image size without loosing the quality of images. If you are using PNG images then you download PNG lossy optimizer tool i.e
Combine your showthread.css into global.css files and use default CSS minifying option of Mybb 1.8 from Home » Board Settings » Server and Optimization Options » Minify Stylesheets » Choose Yes option.
Use FontAwesome Icons : Instead of using CSS sprites to your forum icons it’s very easy to use FontAwesome icons as it reduce http requests to call for different sprites images. Also FontAwesome can be easily resized and fits for responsive designs with its vector graphics functionality.
Put the Fontawesome CSS code at bottom of footer templates. Home » Template Sets » vienna Templates » Edit Template: footer
Alter Mybb Engines : You can change your mybb_sessions table into Heap/Memory from your phpmyadmin. Run following code to alter database storage engine of session table from MyISAM to Memory.
ALTER TABLE `mybb_sessions` ENGINE = memory
Convert all your tables to Innodb storage engine from MyISAM which gives optimum performance for large forums. You must have MySQL 5.6 otherwise :
1. Upgrade to lastest MySQL 5.6 + (MariaDB 10.X) (request your host for it)
2. Keep Full Text Index searches and let the mybb_posts and mybb_threads tables stay as MyISAM
3. Drop the index on message for the mybb_posts table and the index subject on the mybb_threads table.