-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #792 from unoplatform/dev/jela/doc-update
docs: Adjust prefetch documentation
- Loading branch information
Showing
2 changed files
with
3 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters