Skip to content

Commit 0291c1e

Browse files
authored
Unminified Google Brotli script (temporary) (#19978)
1 parent 87801ea commit 0291c1e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

aspnetcore/blazor/host-and-deploy/webassembly.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ Blazor relies on the host to the serve the appropriate compressed files. When us
3535
* For IIS `web.config` compression configuration, see the [IIS: Brotli and Gzip compression](#brotli-and-gzip-compression) section.
3636
* When hosting on static hosting solutions that don't support statically-compressed file content negotiation, such as GitHub Pages, consider configuring the app to fetch and decode Brotli compressed files:
3737

38-
* Obtain the JavaScript Brotli decoder from the [google/brotli GitHub repository](https://github.com/google/brotli). As of July 2020, the decoder file is named `decode.min.js` and found in the repository's [`js` folder](https://github.com/google/brotli/tree/master/js).
38+
* Obtain the JavaScript Brotli decoder from the [google/brotli GitHub repository](https://github.com/google/brotli). As of September 2020, the decoder file is named `decode.js` and found in the repository's [`js` folder](https://github.com/google/brotli/tree/master/js).
39+
40+
> [!NOTE]
41+
> A regression is present in the minified version of the `decode.js` script (`decode.min.js`) in the [google/brotli GitHub repository](https://github.com/google/brotli). Either minify the script on your own or use the [npm package](https://www.npmjs.com/package/brotli) until the issue [Window.BrotliDecode is not set in decode.min.js (google/brotli #844)](https://github.com/google/brotli/issues/844) is resolved. The example code in this section uses the **unminified** version of the script.
42+
3943
* Update the app to use the decoder. Change the markup inside the closing `<body>` tag in `wwwroot/index.html` to the following:
4044

4145
```html
42-
<script src="decode.min.js"></script>
46+
<script src="decode.js"></script>
4347
<script src="_framework/blazor.webassembly.js" autostart="false"></script>
4448
<script>
4549
Blazor.start({

0 commit comments

Comments
 (0)