Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Blazor] Tracking end-to-end fingerprinting in standalone mode #60536

Open
1 of 5 tasks
maraf opened this issue Feb 21, 2025 · 3 comments
Open
1 of 5 tasks

[Blazor] Tracking end-to-end fingerprinting in standalone mode #60536

maraf opened this issue Feb 21, 2025 · 3 comments
Assignees
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly

Comments

@maraf
Copy link
Member

maraf commented Feb 21, 2025

@maraf maraf added area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly labels Feb 21, 2025
@maraf maraf added this to the .NET 10 Planning milestone Feb 21, 2025
@maraf maraf self-assigned this Feb 21, 2025
@maraf
Copy link
Member Author

maraf commented Feb 21, 2025

After offline discussion, we might proceed with enabling the feature in template and not enabling it by default in the SDK. Meaning it would need a manual upgrade in existing apps.

@maraf
Copy link
Member Author

maraf commented Feb 21, 2025

Maybe we can copy fingerprinted & not-fingerprinted dotnet.js & blazor.js into publish output and produce a console warning if non-fingerprinted file is used (credit @akoeplinger)

@akoeplinger
Copy link
Member

not sure if it'd be easier than duplicating the files but I thought something like this:

console.warn("Directly importing blazor.js is not recommended. Please use fingerprinting.");

const script = document.createElement('script');
script.type = 'text/javascript';
script.src = './blazor.XYZ.js';
document.head.appendChild(script);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly
Projects
None yet
Development

No branches or pull requests

2 participants