Skip to content

Commit 3ede8e8

Browse files
committed
Enable WASM preload and fingerprinted Blazor script
Activated WebAssembly preload link for better performance. Updated Blazor WebAssembly script reference to use fingerprinting for improved cache management. No changes to staticwebapp.config.json.
1 parent a53dbe8 commit 3ede8e8

3 files changed

Lines changed: 2 additions & 9 deletions

File tree

BlazorExpress.ChartJS.Demo.WebAssembly/wwwroot/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<meta property="twitter:image" content="_content/BlazorExpress.ChartJS.Demo.RCL/images/line-chart.png">
2222

2323
<base href="/" />
24-
<!--<link rel="preload" id="webassembly" />-->
24+
<link rel="preload" id="webassembly" />
2525
<link rel="icon" type="image/png" href="favicon.png" />
2626

2727
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@1.0.0/css/bulma.min.css">
@@ -56,7 +56,7 @@
5656
</div>
5757
</div>
5858

59-
<script src="_framework/blazor.webassembly.js"></script>
59+
<script src="_framework/blazor.webassembly#[.{fingerprint}].js"></script>
6060
<script src="_content/BlazorExpress.Bulma/js/blazorexpress.bulma.js" asp-append-version="true"></script>
6161

6262
<!-- Add chart.js reference if chart components are used in your application. -->

BlazorExpress.ChartJS.Demo.WebAssembly/wwwroot/staticwebapp.config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"navigationFallback": {
33
"rewrite": "/index.html",
44
"exclude": [
5-
"/_framework/*",
65
"/css/*",
76
"/js/*",
87
"/_content/*"

wwwroot/staticwebapp.config.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)