Please refer to the below steps to optimize your website in cPanel.
- Login to your cPanel account.
- Click on the Optimize website under the Software section.
- On the next page, you can select the type of content which you want to optimize. You can choose it according to your preference. And then click on update setting.