Skip to content

Commit 5a54b6d

Browse files
authored
[browser] Change default boot config to dotnet.boot.js (#113374)
1 parent 04330b6 commit 5a54b6d

File tree

21 files changed

+90
-93
lines changed

21 files changed

+90
-93
lines changed

src/mono/browser/build/BrowserWasmApp.targets

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@
130130
<_WasmPThreadPoolInitialSize Condition="'$(_WasmPThreadPoolInitialSize)' == ''">-1</_WasmPThreadPoolInitialSize>
131131
<_WasmPThreadPoolUnusedSize Condition="'$(_WasmPThreadPoolUnusedSize)' == ''">-1</_WasmPThreadPoolUnusedSize>
132132
<_WasmIsPublishing Condition="'$(_WasmIsPublishing)' == '' and '$(_IsPublishing)' != ''">$(_IsPublishing)</_WasmIsPublishing>
133+
134+
<_WasmAppBuilderBootConfigFileName>$(WasmBootConfigFileName)</_WasmAppBuilderBootConfigFileName>
135+
<_WasmAppBuilderBootConfigFileName Condition="'$(_WasmAppBuilderBootConfigFileName)' == ''">dotnet.boot.js</_WasmAppBuilderBootConfigFileName>
133136
</PropertyGroup>
134137

135138
<ItemGroup>
@@ -141,6 +144,7 @@
141144
<RemoveDir Directories="$(WasmAppDir)" />
142145
<WasmAppBuilder
143146
AppDir="$(WasmAppDir)"
147+
ConfigFileName="$(_WasmAppBuilderBootConfigFileName)"
144148
Assemblies="@(_WasmAssembliesInternal)"
145149
MainAssemblyName="$(WasmMainAssemblyFileName)"
146150
HostConfigs="@(HostConfig)"

src/mono/browser/runtime/dotnet.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ declare type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Arra
5858
interface DotnetHostBuilder {
5959
/**
6060
* @param config default values for the runtime configuration. It will be merged with the default values.
61-
* Note that if you provide resources and don't provide custom configSrc URL, the blazor.boot.json will be downloaded and applied by default.
61+
* Note that if you provide resources and don't provide custom configSrc URL, the dotnet.boot.js will be downloaded and applied by default.
6262
*/
6363
withConfig(config: MonoConfig): DotnetHostBuilder;
6464
/**
65-
* @param configSrc URL to the configuration file. ./blazor.boot.json is a default config file location.
65+
* @param configSrc URL to the configuration file. ./dotnet.boot.js is a default config file location.
6666
*/
6767
withConfigSrc(configSrc: string): DotnetHostBuilder;
6868
/**
@@ -376,7 +376,7 @@ type SingleAssetBehaviors =
376376
*/
377377
| "js-module-native"
378378
/**
379-
* Typically blazor.boot.json
379+
* Typically dotnet.boot.js
380380
*/
381381
| "manifest"
382382
/**

src/mono/browser/runtime/loader/config.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,7 @@ export async function mono_wasm_load_config (module: DotnetModuleInternal): Prom
240240
try {
241241
if (!module.configSrc && (!loaderHelpers.config || Object.keys(loaderHelpers.config).length === 0 || (!loaderHelpers.config.assets && !loaderHelpers.config.resources))) {
242242
// if config file location nor assets are provided
243-
// Temporal way for tests to opt-in for using boot.js
244-
module.configSrc = (globalThis as any)["__DOTNET_INTERNAL_BOOT_CONFIG_SRC"]
245-
?? globalThis.window?.document?.documentElement?.getAttribute("data-dotnet_internal_boot_config_src")
246-
?? "blazor.boot.json";
243+
module.configSrc = "dotnet.boot.js";
247244
}
248245

249246
configFilePath = module.configSrc;
@@ -336,6 +333,16 @@ async function loadBootConfig (module: DotnetModuleInternal): Promise<void> {
336333
loaderHelpers.config.applicationEnvironment = "Production";
337334
}
338335

336+
if (loaderHelpers.config.debugLevel !== 0 && document.querySelector("script[src*='aspnetcore-browser-refresh']")) {
337+
loaderHelpers.config.environmentVariables = loaderHelpers.config.environmentVariables || {};
338+
if (!loaderHelpers.config.environmentVariables["DOTNET_MODIFIABLE_ASSEMBLIES"]) {
339+
loaderHelpers.config.environmentVariables["DOTNET_MODIFIABLE_ASSEMBLIES"] = "debug";
340+
}
341+
if (!loaderHelpers.config.environmentVariables["__ASPNETCORE_BROWSER_TOOLS"]) {
342+
loaderHelpers.config.environmentVariables["__ASPNETCORE_BROWSER_TOOLS"] = "true";
343+
}
344+
}
345+
339346
function fetchBootConfig (url: string): Promise<Response> {
340347
return loaderHelpers.fetch_like(url, {
341348
method: "GET",

src/mono/browser/runtime/types/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import type { EmscriptenModule, NativePointer } from "./emscripten";
66
export interface DotnetHostBuilder {
77
/**
88
* @param config default values for the runtime configuration. It will be merged with the default values.
9-
* Note that if you provide resources and don't provide custom configSrc URL, the blazor.boot.json will be downloaded and applied by default.
9+
* Note that if you provide resources and don't provide custom configSrc URL, the dotnet.boot.js will be downloaded and applied by default.
1010
*/
1111
withConfig(config: MonoConfig): DotnetHostBuilder;
1212
/**
13-
* @param configSrc URL to the configuration file. ./blazor.boot.json is a default config file location.
13+
* @param configSrc URL to the configuration file. ./dotnet.boot.js is a default config file location.
1414
*/
1515
withConfigSrc(configSrc: string): DotnetHostBuilder;
1616
/**
@@ -256,7 +256,7 @@ export interface LoadingResource {
256256
response: Promise<Response>;
257257
}
258258

259-
// Types of assets that can be in the _framework/blazor.boot.json file (taken from /src/tasks/WasmAppBuilder/WasmAppBuilder.cs)
259+
// Types of assets that can be in the _framework/dotnet.boot.js file (taken from /src/tasks/WasmAppBuilder/WasmAppBuilder.cs)
260260
export interface AssetEntry {
261261
/**
262262
* the name of the asset, including extension.
@@ -335,7 +335,7 @@ export type SingleAssetBehaviors =
335335
*/
336336
| "js-module-native"
337337
/**
338-
* Typically blazor.boot.json
338+
* Typically dotnet.boot.js
339339
*/
340340
| "manifest"
341341
/**

src/mono/browser/test-main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function initRunArgs(runArgs) {
117117
runArgs.enableGC = runArgs.enableGC === undefined ? true : runArgs.enableGC;
118118
runArgs.diagnosticTracing = runArgs.diagnosticTracing === undefined ? false : runArgs.diagnosticTracing;
119119
runArgs.debugging = runArgs.debugging === undefined ? false : runArgs.debugging;
120-
runArgs.configSrc = runArgs.configSrc === undefined ? './_framework/blazor.boot.json' : runArgs.configSrc;
120+
runArgs.configSrc = runArgs.configSrc === undefined ? './_framework/dotnet.boot.js' : runArgs.configSrc;
121121
// default'ing to true for tests, unless debugging
122122
runArgs.forwardConsole = runArgs.forwardConsole === undefined ? !runArgs.debugging : runArgs.forwardConsole;
123123
runArgs.interpreterPgo = runArgs.interpreterPgo === undefined ? false : runArgs.interpreterPgo;

src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ Copyright (c) .NET Foundation. All rights reserved.
171171
<_TargetingNET90OrLater>false</_TargetingNET90OrLater>
172172
<_TargetingNET80OrLater Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '8.0'))">true</_TargetingNET80OrLater>
173173
<_TargetingNET90OrLater Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '9.0'))">true</_TargetingNET90OrLater>
174+
<_TargetingNET100OrLater Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '10.0'))">true</_TargetingNET100OrLater>
174175

175176
<_BlazorEnableTimeZoneSupport>$(BlazorEnableTimeZoneSupport)</_BlazorEnableTimeZoneSupport>
176177
<_BlazorEnableTimeZoneSupport Condition="'$(_BlazorEnableTimeZoneSupport)' == ''">true</_BlazorEnableTimeZoneSupport>
@@ -193,7 +194,11 @@ Copyright (c) .NET Foundation. All rights reserved.
193194
<_WasmFingerprintDotnetJs>$(WasmFingerprintDotnetJs)</_WasmFingerprintDotnetJs>
194195
<_WasmFingerprintDotnetJs Condition="'$(_WasmFingerprintDotnetJs)' == ''">$(WriteImportMapToHtml)</_WasmFingerprintDotnetJs>
195196
<_WasmFingerprintDotnetJs Condition="'$(_WasmFingerprintDotnetJs)' == ''">false</_WasmFingerprintDotnetJs>
197+
<_WasmFingerprintBootConfig>$(WasmFingerprintBootConfig)</_WasmFingerprintBootConfig>
198+
<_WasmFingerprintBootConfig Condition="'$(_WasmFingerprintBootConfig)' == ''">$(WriteImportMapToHtml)</_WasmFingerprintBootConfig>
199+
<_WasmFingerprintBootConfig Condition="'$(_WasmFingerprintBootConfig)' == ''">false</_WasmFingerprintBootConfig>
196200
<_WasmBootConfigFileName>$(WasmBootConfigFileName)</_WasmBootConfigFileName>
201+
<_WasmBootConfigFileName Condition="'$(_WasmBootConfigFileName)' == '' and '$(_TargetingNET100OrLater)' == 'true'">dotnet.boot.js</_WasmBootConfigFileName>
197202
<_WasmBootConfigFileName Condition="'$(_WasmBootConfigFileName)' == ''">blazor.boot.json</_WasmBootConfigFileName>
198203
<_WasmPublishBootConfigFileName>publish.$(_WasmBootConfigFileName)</_WasmPublishBootConfigFileName>
199204

@@ -316,9 +321,9 @@ Copyright (c) .NET Foundation. All rights reserved.
316321
<Target Name="_AddWasmStaticWebAssets" DependsOnTargets="$(AddWasmStaticWebAssetsDependsOn)">
317322
<ItemGroup>
318323
<StaticWebAsset Include="@(WasmStaticWebAsset)" />
319-
<StaticWebAsset Include="@(_BuildWasmBootJsonStaticWebAsset)" />
324+
<StaticWebAsset Include="@(_WasmBuildBootConfigStaticWebAsset)" />
320325
<StaticWebAssetEndpoint Include="@(WasmStaticWebAssetEndpoint)" />
321-
<StaticWebAssetEndpoint Include="@(_BuildWasmBootJsonStaticWebAssetEndpoint)" />
326+
<StaticWebAssetEndpoint Include="@(_WasmBuildBootConfigStaticWebAssetEndpoint)" />
322327
</ItemGroup>
323328
</Target>
324329

@@ -391,18 +396,18 @@ Copyright (c) .NET Foundation. All rights reserved.
391396
<FileWrites Include="$(_WasmBuildBootJsonPath)" />
392397
</ItemGroup>
393398

394-
<PropertyGroup>
395-
<_WasmBuildBootJsonPath>$(IntermediateOutputPath)$(_WasmBootConfigFileName)</_WasmBuildBootJsonPath>
396-
</PropertyGroup>
397-
398399
<ItemGroup>
399-
<_BuildWasmBootJson
400+
<_WasmBuildBootConfigCandidate
400401
Include="$(_WasmBuildBootJsonPath)"
401402
RelativePath="_framework/$(_WasmBootConfigFileName)" />
403+
404+
<_WasmBuildBootConfigFingerprintPatterns Include="WasmBootConfigFiles" Pattern="*%(_WasmBuildBootConfigCandidate.Extension)" Expression="#[.{fingerprint}]!" />
402405
</ItemGroup>
403406

404407
<DefineStaticWebAssets
405-
CandidateAssets="@(_BuildWasmBootJson)"
408+
CandidateAssets="@(_WasmBuildBootConfigCandidate)"
409+
FingerprintCandidates="$(_WasmFingerprintBootConfig)"
410+
FingerprintPatterns="@(_WasmBuildBootConfigFingerprintPatterns)"
406411
SourceId="$(PackageId)"
407412
SourceType="Computed"
408413
AssetKind="Build"
@@ -414,15 +419,15 @@ Copyright (c) .NET Foundation. All rights reserved.
414419
ContentRoot="$(OutDir)wwwroot"
415420
BasePath="$(StaticWebAssetBasePath)"
416421
>
417-
<Output TaskParameter="Assets" ItemName="_BuildWasmBootJsonStaticWebAsset" />
422+
<Output TaskParameter="Assets" ItemName="_WasmBuildBootConfigStaticWebAsset" />
418423
</DefineStaticWebAssets>
419424

420425
<DefineStaticWebAssetEndpoints
421-
CandidateAssets="@(_BuildWasmBootJsonStaticWebAsset)"
426+
CandidateAssets="@(_WasmBuildBootConfigStaticWebAsset)"
422427
ExistingEndpoints="@(StaticWebAssetEndpoint)"
423428
ContentTypeMappings="@(StaticWebAssetContentTypeMapping)"
424429
>
425-
<Output TaskParameter="Endpoints" ItemName="_BuildWasmBootJsonStaticWebAssetEndpoint" />
430+
<Output TaskParameter="Endpoints" ItemName="_WasmBuildBootConfigStaticWebAssetEndpoint" />
426431
</DefineStaticWebAssetEndpoints>
427432

428433
</Target>
@@ -587,14 +592,19 @@ Copyright (c) .NET Foundation. All rights reserved.
587592
</Target>
588593

589594
<Target Name="_AddPublishWasmBootJsonToStaticWebAssets" DependsOnTargets="GeneratePublishWasmBootJson">
595+
590596
<ItemGroup>
591-
<_PublishWasmBootJson
597+
<_WasmPublishBootConfigCandidate
592598
Include="$(IntermediateOutputPath)$(_WasmPublishBootConfigFileName)"
593599
RelativePath="_framework/$(_WasmBootConfigFileName)" />
600+
601+
<_WasmPublishBootConfigFingerprintPatterns Include="WasmBootConfigFiles" Pattern="*%(_WasmPublishBootConfigCandidate.Extension)" Expression="#[.{fingerprint}]!" />
594602
</ItemGroup>
595603

596604
<DefineStaticWebAssets
597-
CandidateAssets="@(_PublishWasmBootJson)"
605+
CandidateAssets="@(_WasmPublishBootConfigCandidate)"
606+
FingerprintCandidates="$(_WasmFingerprintBootConfig)"
607+
FingerprintPatterns="@(_WasmPublishBootConfigFingerprintPatterns)"
598608
SourceId="$(PackageId)"
599609
SourceType="Computed"
600610
AssetKind="Publish"
@@ -607,11 +617,11 @@ Copyright (c) .NET Foundation. All rights reserved.
607617
BasePath="$(StaticWebAssetBasePath)"
608618
>
609619
<Output TaskParameter="Assets" ItemName="StaticWebAsset" />
610-
<Output TaskParameter="Assets" ItemName="_PublishWasmBootJsonStaticWebAsset" />
620+
<Output TaskParameter="Assets" ItemName="_WasmPublishBootConfigStaticWebAsset" />
611621
</DefineStaticWebAssets>
612622

613623
<DefineStaticWebAssetEndpoints
614-
CandidateAssets="@(_PublishWasmBootJsonStaticWebAsset)"
624+
CandidateAssets="@(_WasmPublishBootConfigStaticWebAsset)"
615625
ExistingEndpoints="@(StaticWebAssetEndpoint)"
616626
ContentTypeMappings="@(StaticWebAssetContentTypeMapping)"
617627
>

src/mono/sample/wasm/browser-advanced/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'wasm-unsafe-eval';" />
1111
<script type='module' src="./main.js"></script>
1212
<script type='module' src="./dotnet.js"></script>
13-
<link rel="preload" href="./blazor.boot.json" as="fetch" crossorigin="use-credentials">
13+
<link rel="preload" href="./dotnet.boot.js" as="fetch" crossorigin="use-credentials">
1414
<link rel="prefetch" href="./dotnet.native.js" as="fetch" crossorigin="anonymous">
1515
<link rel="prefetch" href="./dotnet.runtime.js" as="fetch" crossorigin="anonymous">
1616
<link rel="prefetch" href="./advanced-sample.lib.module.js" as="fetch" crossorigin="anonymous">

src/mono/sample/wasm/browser-advanced/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ try {
4646
}
4747
})
4848
.withModuleConfig({
49-
configSrc: "./blazor.boot.json",
49+
configSrc: "./dotnet.boot.js",
5050
onConfigLoaded: (config) => {
5151
// This is called during emscripten `dotnet.wasm` instantiation, after we fetched config.
5252
console.log('user code Module.onConfigLoaded');

src/mono/sample/wasm/browser-bench/appstart-frame.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1010
<script type="module" src="./frame-main.js"></script>
1111
<script type='module' src="./dotnet.js"></script>
12-
<link rel="preload" href="./blazor.boot.json" as="fetch" crossorigin="use-credentials">
12+
<link rel="preload" href="./dotnet.boot.js" as="fetch" crossorigin="use-credentials">
1313
<link rel="prefetch" href="./dotnet.native.js" as="fetch" crossorigin="anonymous">
1414
<link rel="prefetch" href="./dotnet.runtime.js" as="fetch" crossorigin="anonymous">
1515
</head>

src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTestsBase.cs

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -80,28 +80,11 @@ public ProjectInfo CreateWasmTemplateProject(
8080
.ExecuteWithCapturedOutput($"new {template.ToString().ToLower()} {extraArgs}")
8181
.EnsureSuccessful();
8282

83-
UpdateBootJsInHtmlFiles();
84-
8583
string projectFilePath = Path.Combine(_projectDir, $"{projectName}.csproj");
8684
UpdateProjectFile(projectFilePath, runAnalyzers, extraProperties, extraItems, insertAtEnd);
8785
return new ProjectInfo(projectName, projectFilePath, logPath, nugetDir);
8886
}
8987

90-
protected void UpdateBootJsInHtmlFiles()
91-
{
92-
foreach (var filePath in Directory.EnumerateFiles(_projectDir, "*.html", SearchOption.AllDirectories))
93-
{
94-
UpdateBootJsInHtmlFile(filePath);
95-
}
96-
}
97-
98-
protected void UpdateBootJsInHtmlFile(string filePath)
99-
{
100-
string fileContent = File.ReadAllText(filePath);
101-
fileContent = StringReplaceWithAssert(fileContent, "<head>", "<head><script>window['__DOTNET_INTERNAL_BOOT_CONFIG_SRC'] = 'dotnet.boot.js';</script>");
102-
File.WriteAllText(filePath, fileContent);
103-
}
104-
10588
protected ProjectInfo CopyTestAsset(
10689
Configuration config,
10790
bool aot,
@@ -180,7 +163,11 @@ public virtual (string projectDir, string buildOutput) BuildProject(
180163

181164
buildOptions.ExtraBuildEnvironmentVariables["TreatPreviousAsCurrent"] = "false";
182165

183-
buildOptions = buildOptions with { ExtraMSBuildArgs = $"{buildOptions.ExtraMSBuildArgs} -p:WasmBootConfigFileName={buildOptions.BootConfigFileName}" };
166+
if (buildOptions.BootConfigFileName != "dotnet.boot.js")
167+
{
168+
// Omit implicit default
169+
buildOptions = buildOptions with { ExtraMSBuildArgs = $"{buildOptions.ExtraMSBuildArgs} -p:WasmBootConfigFileName={buildOptions.BootConfigFileName}" };
170+
}
184171

185172
(CommandResult res, string logFilePath) = BuildProjectWithoutAssert(configuration, info.ProjectName, buildOptions);
186173

src/mono/wasm/Wasm.Build.Tests/WasmRunOutOfAppBundleTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ public async void RunOutOfAppBundle(Configuration config, bool aot)
3838
File.WriteAllText(indexHtmlPath, html);
3939
}
4040

41-
UpdateBootJsInHtmlFile(indexHtmlPath);
42-
4341
RunResult result = await RunForPublishWithWebServer(new BrowserRunOptions(
4442
config,
4543
TestScenario: "DotnetRun",

src/mono/wasm/build/WasmApp.Common.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@
9292
- @(WasmFilesToIncludeInFileSystem) - Files to include in the vfs
9393
- @(WasmNativeAsset) - Native files to be added to `NativeAssets` in the bundle.
9494
95-
- @(WasmEnvironmentVariable) - add environment variables `_framework/blazor.boot.json`
96-
- @(WasmExtraConfig) - json elements to add to `_framework/blazor.boot.json`
95+
- @(WasmEnvironmentVariable) - adds environment variables to `_framework/dotnet.boot.js`
96+
- @(WasmExtraConfig) - json elements to add to `_framework/dotnet.boot.js`
9797
Eg. <WasmExtraConfig Include="xxx" Value="true" />
9898
9999
- Value attribute can have a number, bool, quoted string, or json string

src/mono/wasm/features.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Note: You can replace the location of `AppBundle` directory by `<WasmAppDir>../
166166
- `dotnet.js` - is the main entrypoint with the [JavaScript API](#JavaScript-API). It will load the rest of the runtime.
167167
- `dotnet.native.js` - is posix emulation layer provided by the [Emscripten](https://github.com/emscripten-core/emscripten) project
168168
- `dotnet.runtime.js` - is integration of the dotnet with the browser
169-
- `blazor.boot.json` - contains list of all other assets and their integrity hash and also various configuration flags.
169+
- `dotnet.boot.js` - contains list of all other assets and their integrity hash and also various configuration flags.
170170
- `dotnet.native.wasm` - is the compiled binary of the dotnet (Mono) runtime.
171171
- `System.Private.CoreLib.*` - is NET assembly with the core implementation of dotnet runtime and class library
172172
- `*.wasm` - are .NET assemblies stored in `WebCIL` format (for better compatibility with firewalls and virus scanners).
@@ -202,7 +202,7 @@ Adding too many files into prefetch could be counterproductive.
202202
Please benchmark your startup performance on real target devices and with realistic network conditions.
203203

204204
```html
205-
<link rel="preload" href="./_framework/blazor.boot.json" as="fetch" crossorigin="use-credentials">
205+
<link rel="preload" href="./_framework/dotnet.boot.js" as="fetch" crossorigin="use-credentials">
206206
<link rel="prefetch" href="./_framework/dotnet.native.js" as="fetch" crossorigin="anonymous">
207207
<link rel="prefetch" href="./_framework/dotnet.runtime.js" as="fetch" crossorigin="anonymous">
208208
```

src/mono/wasm/testassets/BlazorBasicTestApp/App/wwwroot/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
<a href="." class="reload">Reload</a>
2727
<span class="dismiss">🗙</span>
2828
</div>
29-
<script>window["__DOTNET_INTERNAL_BOOT_CONFIG_SRC"] = "dotnet.boot.js";</script>
3029
<script src="_framework/blazor.webassembly.js"></script>
3130
</body>
3231

src/mono/wasm/testassets/LibraryMode/wwwroot/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<title>tmp</title>
88
<meta charset="UTF-8">
99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
10-
<script>window["__DOTNET_INTERNAL_BOOT_CONFIG_SRC"] = "dotnet.boot.js";</script>
1110
<script type='module' src="./main.js"></script>
1211
</head>
1312

src/mono/wasm/testassets/WasmBasicTestApp/App/wwwroot/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<title>WasmLazyLoading</title>
88
<meta charset="UTF-8">
99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
10-
<script>window["__DOTNET_INTERNAL_BOOT_CONFIG_SRC"] = "dotnet.boot.js";</script>
1110
<script type='module' src="./main.js"></script>
1211
<script type='module' src="./profiler.js"></script>
1312
</head>

src/mono/wasm/testassets/WasmOnAspNetCore/BlazorClient/wwwroot/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
<a href="" class="reload">Reload</a>
1717
<a class="dismiss">🗙</a>
1818
</div>
19-
<script>window["__DOTNET_INTERNAL_BOOT_CONFIG_SRC"] = "dotnet.boot.js";</script>
2019
<script src="_framework/blazor.webassembly.js"></script>
2120
</body>
2221

src/mono/wasm/testassets/WasmOnAspNetCore/WasmBrowserClient/wwwroot/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<title>WasmBrowser</title>
88
<meta charset="UTF-8">
99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
10-
<script>window["__DOTNET_INTERNAL_BOOT_CONFIG_SRC"] = "dotnet.boot.js";</script>
1110
<script type='module' src="./main.js"></script>
1211
</head>
1312

0 commit comments

Comments
 (0)