Step 1: Log in to your Joomla admin dashboard.
Step 2: Go to System > Global Configuration menu.
Step 3: Go to Server tab and find Gzip Page Compression section. Hit Yes button next to it to enable this option.
Step 4: Do not forget to click on the green Save button in the top left part of the page for the changes to be applied.