---
title: Improve theme performance
slug: configured-commerce/docs/theme-performance-in-classic
docTags: 
createdAt: 2026-08-13T10:46:31.000Z
---

:::hint{type="warning"}
**Important**

Classic CMS reached end-of-life in January 2025 and is no longer receiving feature updates or bug fixes. You should \[migrate to Spire CMS]\(../../End user docs/spire-cms/get-started-with-spire-cms/migrate-from-classic-cms-to-spire-cms.mdx).
:::

Shared angular templates are included in **\_MainLayout** and the **Product Detail** page for performance improvement

If you have built a custom theme the changes will need to be merged to take advantage of these performance improvements. Add the following scripts to the two pages.

- Add to \_*MainLayout*

```csharp
<script type="text/ng-template" id="/PartialViews/Catalog-ProductPriceSaving">
[% partialView 'Catalog-ProductPriceSaving' %]
</script>
<script type="text/ng-template" id="/PartialViews/Catalog-ProductSalePriceLabel">
[% partialView 'Catalog-ProductSalePriceLabel' %]
</script>
```

- Add to *Widgets/ProductDetailView/Standard.cshtml*

```csharp
<script type="text/ng-template" id="/PartialViews/Catalog-ProductImages">
[% partialView 'Catalog-ProductImages' %]
</script>
<script type="text/ng-template" id="/PartialViews/Catalog-ProductImageCarousel">
[% partialView 'Catalog-ProductImageCarousel' %]
</script>
```
