JS files being duplicated #5171
Answered
by
sbwalker
Sharafudeen
asked this question in
General
-
Hi, Why are JS files being duplicated when an error occurs? Any idea? Rendered Page: Browser Console: Resources Declaration: |
Beta Was this translation helpful? Give feedback.
Answered by
sbwalker
Mar 14, 2025
Replies: 1 comment 2 replies
-
@Sharafudeen please watch this video which explains JavaScript behavior in Static Blazor: https://www.youtube.com/watch?v=SNzAHzXyqiI It explains that script tags are ignored in enhanced navigation, so the BlazorScriptReload recreates the script elements in the head so that they will be executed. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Sharafudeen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Sharafudeen please watch this video which explains JavaScript behavior in Static Blazor:
https://www.youtube.com/watch?v=SNzAHzXyqiI
It explains that script tags are ignored in enhanced navigation, so the BlazorScriptReload recreates the script elements in the head so that they will be executed.