File tree Expand file tree Collapse file tree 1 file changed +2
-23
lines changed
src/SvgHelpers/SvgHelpers/wwwroot Expand file tree Collapse file tree 1 file changed +2
-23
lines changed Original file line number Diff line number Diff line change 90
90
</ div >
91
91
92
92
<!--Load required scripts for the Monaco editor-->
93
+ <!--Must be done before loading blazor.webassembly.js-->
93
94
< script src ="_content/BlazorMonaco/jsInterop.js "> </ script >
94
95
< script src ="_content/BlazorMonaco/lib/monaco-editor/min/vs/loader.js "> </ script >
95
96
< script src ="_content/BlazorMonaco/lib/monaco-editor/min/vs/editor/editor.main.js "> </ script >
96
97
97
98
<!--Load from Brotli compressed files-->
98
- < script src ="_framework/blazor.webassembly.js " autostart ="false "> </ script >
99
- < script type ="module ">
100
- import { BrotliDecode } from './js/decode.min.js' ;
101
- Blazor . start ( {
102
- loadBootResource : function ( type , name , defaultUri , integrity ) {
103
- if ( type !== 'dotnetjs' && location . hostname !== 'localhost' && type !== 'configuration' ) {
104
- return ( async function ( ) {
105
- const response = await fetch ( defaultUri + '.br' , { cache : 'no-cache' } ) ;
106
- if ( ! response . ok ) {
107
- throw new Error ( response . statusText ) ;
108
- }
109
- const originalResponseBuffer = await response . arrayBuffer ( ) ;
110
- const originalResponseArray = new Int8Array ( originalResponseBuffer ) ;
111
- const decompressedResponseArray = BrotliDecode ( originalResponseArray ) ;
112
- const contentType = type ===
113
- 'dotnetwasm' ? 'application/wasm' : 'application/octet-stream' ;
114
- return new Response ( decompressedResponseArray ,
115
- { headers : { 'content-type' : contentType } } ) ;
116
- } ) ( ) ;
117
- }
118
- }
119
- } ) ;
120
- </ script >
99
+ < script src ="_framework/blazor.webassembly.js "> </ script >
121
100
</ body >
122
101
</ html >
You can’t perform that action at this time.
0 commit comments