Skip to main content

Pagespeed optimization

This page has helpful tips on optimizing the page speed of your website.

Activate the cache

For optimal performance you should activate the cache. You find a helpful guide here (German): The perfect .htaccess file for Contao

Serve images as WEBP

As of Contao 4.8 you can serve images as WEBP files in the image sizes. You activate this under: Themes > Edit the image sizes of the theme > Edit the image size settings > Expert settings.

When importing the demo data this feature is deactivated by default, as not all hosting packages support WEBP.

Use image sizes correctly

When you add images, always choose a suitable image size. This way only the image size actually needed is loaded and the page stays fast. The NATURE theme already provides suitable image sizes for news, events, sliders and other elements.

Activate SSL

Give your website more security and trust with HTTPS. You can usually activate this directly in your hosting package. Many providers offer free SSL certificates.