Enable and configure the Asset Optimizer

Abstract

Enable the Optimizer globally for entire Sitecore instance or locally for selected tenants.

The Asset Optimizer is a module that optimizes CSS styles and JS scripts. When it is enabled in a production environment, the Asset Optimizer improves overall site performance by reducing the amount of data that needs to be transferred. Sitecore administrators can enable this module either globally for the entire Sitecore instance or locally for selected tenants.

Note

It is best practice to disable the Asset Optimizer in development environments and to enable it in production environments.

This topic describes how to:

Concatenate and Minify – to minify all files and concatenate them into one file.

0047D5E29DBB4CCA9DCB12641EE892DA.png

Note

Changes take effect immediately after the item is saved. Anonymous users might not see the changes until you publish.

To change the optimization settings for a specific site:

  1. In the Content Editor, navigate to sitecore/content/…/SITE_NAME/Presentation/Page Designs.

  2. In the Asset Optimization section, in the Styles Optimizing Enabled and Scripts Optimizing Enabled fields, to override styles and scripts optimization settings, select:

    • Default – to inherit global settings

    • Yes – to always enable optimization for this site.

    • No – to always disable optimization for this site.

    DE562FB3E1AC412DAA56CD0B9E8B1BC8.png