Tweaks for optimization - Page Speed
I wanted to open another Page Speed speed optimiziation thread for Vanilla. There is a lot of tweaking that can be done. I made another small round of optimization last night and i'll just start with some little stuff and would be happy if others add more ideas here. Basically this info can be found in many threads here but here is a small recollection.
Things i regulary do:
- TinyPNG.com every picture that you use in your theme mobile and desktop
- If it works for you add $Configuration['Garden']['CombineAssets'] = TRUE; to your config.php to let Vanilla combine CSS your files, if it breaks your layout you have to go manual as described below...
- Delete as many CSS files of the plugins that you use and move their style and content into your Custom.css. If not in the plugin folder, Vanilla doesn't request them (handle with care and backups, some styles break each other).
- If you want and it doesn't spread too much confusion in your setup get rid of your Custom.css and write everything in your Style.css
- Check your Google Analytics site speed recommendations and list the sites on top with the most user traffic. Check their page speeds and look up if you can improve those specific pages (there might be bloated picture uploads, reducing those picture files size could boost these sites much more).
- @Bleistivt startet an interesting issue about getting rid of 300kb by removing almost unneeded jQuery-UI.js from the js folder: https://github.com/vanilla/vanilla/issues/3057
- I use a script that resizes and recompresses all my file uploads because they are bloated like hell when users upload 10 MP images with 3000+ pixels in width and insert them in the post. Once and then i run a script to resize all uploads.
- If you have many banned users you may have many profile pictures with "Banned User" request from a Vanilla CDN. This image can be moved local and brought down in filesize with this config:
``$Configuration['Garden']['BannedPhoto'] = 'https://images.v-cdn.net/banned_large.png';`
Things i can't do:
- Every Vanillicon SVG could see a reduction in filesize of about 50% - 60% with better compression. Thats sometimes up to 1.8 kilobyites. For 20-50 profile images per pages in a huge forum this could bring quiet a nice little boost. Something only the Vanilla crew could do.
It's not rocket science but more faster Vanilla forums on the web, bring more OS users to Vanilla forums as well.