Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

Theme performance

Describes ways to improve theme performance in Optimizely Configured Commerce.

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

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

Add to Widgets/ProductDetailView/Standard.cshtml

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