[Blazor] Remove build-time disabling of preloading in tests#61667
Open
maraf wants to merge 7 commits intodotnet:mainfrom
Open
[Blazor] Remove build-time disabling of preloading in tests#61667maraf wants to merge 7 commits intodotnet:mainfrom
maraf wants to merge 7 commits intodotnet:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
Removes build-time configuration that explicitly disabled Blazor WebAssembly preloading features in test environments. This change aligns with the new approach where preloading is controlled by adding the <ResourcePreloader /> component to the application rather than being disabled globally at build time.
- Removes
WasmPreloadAssetsandBlazorCacheBootResourcesproperties set to false - Simplifies test configuration by removing unnecessary build-time overrides
- Maintains existing behavior through component-based control
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Components/test/testassets/Directory.Build.props | Removes PropertyGroup blocks that disabled WASM preloading and boot resource caching for test assets |
| src/Components/benchmarkapps/Wasm.Performance/TestApp/Wasm.Performance.TestApp.csproj | Removes BlazorCacheBootResources=false setting from performance test app |
| src/Components/WebAssembly/Directory.Build.props | Removes PropertyGroup blocks that disabled preloading features for WebAssembly components |
javiercn
approved these changes
Jan 26, 2026
This was referenced Apr 10, 2026
Open
This was referenced Apr 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preloading is enabled by placing
<ResourcePreloader />component in the application. We don't need to disable in the tests explicitly during build.