Way to auto-optimize images, CSS and Javascript files?

Hello All,

I have a client who has in in-house team that works on maintaining their site and they just asked me this:

Does the Treepl system have any plugins/add-ons that auto-optimize images, CSS, and/or javascript files? We’ve installed some on the WordPress sites that have helped page speed, which is our next emphasis, in order to get the Core Web vitals and Page Speed Insights reports from Google all up to optimal levels.

I am not aware of a way to do this within Treepl CMS, but I’m wondering if anyone has come up with a 3rd party solution that might be able to help out with something like this?

Thank you for any suggestions you have!

  • Ryan

Hi @StudioRTP

For image optimisation, there is the use of the imageProcessor ( Image Processor ).
And there is a Treehouse snippet that shows an example using this for different device optimisation: Device Image Processing

For CSS and JS optimisation/pre-processing, there is nothing within Treepl.
You could look at a local pre-processing workflow or CDN solutions.
Cloudflare do have the option to optimise/compress CSS/JS along with various other website performance options ( https://www.cloudflare.com/website-optimization/ ) - including their own image optimisation service too.

Hope that helps.

1 Like

Hello @Adam.Wilson

Thank you for the quick reply here and, as always, for your valuable feedback/advice. I will take a look at these options and get to work! I didn’t have the heart to bother the Treepl CMS team right now, so I appreciate you offering some options and recommendations here. Thanks again!

  • Ryan
1 Like

https://tinypng.com is an excellent compression tool to optimise .jpg, .png & .webp, image files.
https://unused-css.com is a good tool to remove unused selectors from your css files.
https://csscompressor.com provides various readability options to minify your css files.

Thank you @on.works - I appreciate your help here! I’m hoping to find something that does it more ‘on the fly’ like the WP plugin because it would take quite a bit of time to do everything manually since these are larger, older sites. I think Cloudflare is going to be my best bet for now, but I’ll look over all the options. Thank you again!