Skip to content

Commit

Permalink
Update webassembly-performance-best-practices.md (dotnet#19816)
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavkm authored Sep 9, 2020
1 parent 329c2eb commit 6214f1c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion aspnetcore/blazor/webassembly-performance-best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Tips for increasing performance in ASP.NET Core Blazor WebAssembly
monikerRange: '>= aspnetcore-2.1'
ms.author: riande
ms.custom: mvc
ms.date: 06/25/2020
ms.date: 09/09/2020
no-loc: ["ASP.NET Core Identity", cookie, Cookie, Blazor, "Blazor Server", "Blazor WebAssembly", "Identity", "Let's Encrypt", Razor, SignalR]
uid: blazor/webassembly-performance-best-practices
---
Expand Down Expand Up @@ -155,10 +155,25 @@ Blazor WebAssembly's runtime includes the following .NET features that can be di
</PropertyGroup>
```

::: moniker range=">= aspnetcore-5.0"

* By default, Blazor WebAssembly carries globalization resources required to display values, such as dates and currency, in the user's culture. If the app doesn't require localization, you may configure the app to support the invariant culture, which is based on the `en-US` culture:

```xml
<PropertyGroup>
<InvariantGlobalization>true</InvariantGlobalization>
</PropertyGroup>
```
::: moniker-end

::: moniker range="< aspnetcore-5.0"

* Collation information is included to make APIs such as <xref:System.StringComparison.InvariantCultureIgnoreCase?displayProperty=nameWithType> work correctly. If you're certain that the app doesn't require the collation data, consider disabling it by setting the `BlazorWebAssemblyPreserveCollationData` MSBuild property in the app's project file to `false`:

```xml
<PropertyGroup>
<BlazorWebAssemblyPreserveCollationData>false</BlazorWebAssemblyPreserveCollationData>
</PropertyGroup>
```

::: moniker-end

0 comments on commit 6214f1c

Please sign in to comment.