--- label: 'Optimizing site performance' top_level: true ---

{% trans %}What is site performance?{% endtrans %}

{% trans %}Site performance, in this context, refers to speed factors such as the page load time and the response time after a user action on a page.{% endtrans %}

{% trans %}What is caching?{% endtrans %}

{% trans %}Caching is saving already-rendered HTML output and other calculated data for later use the first time it is needed. This saves time, because the next time the same data is needed it can be quickly retrieved instead of recalculated. Automatic caching systems also include mechanisms to delete cached calculations or mark them as no longer valid when the underlying data changes. To facilitate that, cached data has a lifetime, which is the maximum time before the data will be deleted from the cache (forcing recalculation).{% endtrans %}

{% trans %}What is file aggregation?{% endtrans %}

{% trans %}Aggregation is when CSS and JavaScript files are merged together and compressed into a format that is much smaller than the original. This allows for faster transmission and faster rendering on the other end.{% endtrans %}

{% trans %}What can I do to improve my site's performance?{% endtrans %}

{% trans %}The following Drupal core modules and mechanisms can improve your site's performance:{% endtrans %}

{% trans %}Internal Page Cache module{% endtrans %}
{% trans %}Caches pages requested by users who are not logged in (anonymous users). Do not use if your site needs to send different output to different anonymous users.{% endtrans %}
{% trans %}Internal Dynamic Page Cache module{% endtrans %}
{% trans %}Caches data for both authenticated and anonymous users, with non-cacheable data in the page converted to placeholders and calculated when the page is requested.{% endtrans %}
{% trans %}Big Pipe module{% endtrans %}
{% trans %}Changes the way pages are sent to users, so that cacheable parts are sent out first with placeholders, and the uncacheable or personalized parts of the page are streamed afterwards. This allows the browser to render the bulk of the page quickly and fill in the details later.{% endtrans %}
{% trans %}Performance page settings{% endtrans %}
{% trans %}In the Manage administrative menu, if you navigate to Configuration > Development > Performance, you will find a setting for the maximum cache lifetime, as well as the ability to turn on CSS and JavaScript file aggregation.{% endtrans %}

{% trans %}Additional resources{% endtrans %}