Skip to content

Commit 38a9ab6

Browse files
committed
Use preloading in benchmark app
1 parent f0a43e8 commit 38a9ab6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Components/benchmarkapps/Wasm.Performance/TestApp/Wasm.Performance.TestApp.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
Client caching isn't part of our performance measurement, so we'll skip it.
99
-->
1010
<BlazorCacheBootResources>false</BlazorCacheBootResources>
11+
<OverrideHtmlAssetPlaceholders>true</OverrideHtmlAssetPlaceholders>
1112
</PropertyGroup>
1213

1314
<ItemGroup>

src/Components/benchmarkapps/Wasm.Performance/TestApp/wwwroot/blazor-frame.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>E2EPerformance</title>
6+
<link rel="preload" id="webassembly" />
67
<base href="/" />
8+
<script type="importmap"></script>
79
</head>
810
<body>
911
<script>
@@ -19,6 +21,6 @@
1921
</script>
2022

2123
<app>Loading...</app>
22-
<script src="_framework/blazor.webassembly.js"></script>
24+
<script src="_framework/blazor.webassembly#[.{fingerprint}].js"></script>
2325
</body>
2426
</html>

0 commit comments

Comments
 (0)