Skip to content

Commit

Permalink
Merge pull request #792 from unoplatform/dev/jela/doc-update
Browse files Browse the repository at this point in the history
docs: Adjust prefetch documentation
  • Loading branch information
jeromelaban authored Oct 29, 2023
2 parents fcf86ee + dfbdb8e commit ea514ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
23 changes: 2 additions & 21 deletions doc/features-prefetch.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@

### Support for Content prefetching
The `WashShellGeneratePrefetchHeaders` controls the generation of `<link rel="prefetch" />` nodes in the index.html header.

It is enabled by default and allows for the browser to efficiently fetch the applications
webassembly and .NET assemblies files, while the JavaScript and WebAssembly runtimes are
being initialized.

This prefetching feature is particularly useful if the http server supports HTTP/2.0.

## Environment variables
Mono provides the ability to configure some features at initialization, such as logging or GC.

To set those variables, add the following to your project file:

```xml
<ItemGroup>
<WasmShellMonoEnvironment Include="MONO_GC_PARAMS" Value="soft-heap-limit=512m,nursery-size=64m,evacuation-threshold=66,major=marksweep" />
<WasmShellMonoEnvironment Include="MONO_LOG_LEVEL" Value="debug" />
<WasmShellMonoEnvironment Include="MONO_LOG_MASK" Value="gc" />
</ItemGroup>
```
It is disabled by default and allows for the browser to efficiently fetch the applications WebAssembly and .NET assemblies files, while the JavaScript and WebAssembly runtimes are being initialized.

These lines change the configuration of the GC and logging, to determine when a GC occurs. More options are available
in the `Environment Variables` section of [the mono documentation](http://docs.go-mono.com/?link=man%3amono(1)).
This prefetching feature is particularly useful if the HTTP server supports HTTP/2.0.
2 changes: 1 addition & 1 deletion gitversion.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
assembly-versioning-scheme: MajorMinorPatch
mode: Mainline
next-version: 7.0.0
# next-version: 7.0.0

branches:
main:
Expand Down

0 comments on commit ea514ea

Please sign in to comment.