-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblazor-blazor.web.js
More file actions
30 lines (26 loc) · 967 Bytes
/
blazor-blazor.web.js
File metadata and controls
30 lines (26 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<script src="_framework/blazor.web.js" autostart="false"></script>
<script>
Blazor.start({
ssr: {
disableDomPreservation: true // disable enhanced navigation
},
circuit: {
reconnectionOptions: {
maxRetries: 6,
retryIntervalMilliseconds: (previousAttempts, maxRetries) =>
previousAttempts >= maxRetries
? null
: previousAttempts * 1000
},
},
webAssembly: {
applicationCulture: 'cs-CZ'
}
});
// events: enhancedload, enhancednavigationstart, enhancednavigationend
Blazor.addEventListener('enhancedload', () => {
});
// blazor.addEventListener("enhancednavigationstart", {CALLBACK});
// blazor.addEventListener("enhancednavigationend", {CALLBACK});
// blazor.addEventListener("enhancedload", {CALLBACK});
</script>