---
title: Theme performance
slug: configured-commerce/sdk/theme-performance
docTags: 
createdAt: 2026-08-05T19:24:02.747Z
---

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

```xml
<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

```xml
<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>
```
