Grammar updates (#33291)
parent
754adb3cc5
commit
3c4dc71f4e
|
@ -17,7 +17,7 @@ This article explains the benefits of applying bundling and minification, includ
|
|||
|
||||
Bundling and minification are two distinct performance optimizations you can apply in a web app. Used together, bundling and minification improve performance by reducing the number of server requests and reducing the size of the requested static assets.
|
||||
|
||||
Bundling and minification primarily improve the first page request load time. Once a web page has been requested, the browser caches the static assets (JavaScript, CSS, and images). So, bundling and minification don't improve performance when requesting the same page, or pages, on the same site requesting the same assets. If the expires header isn't set correctly on the assets and if bundling and minification isn't used, the browser's freshness heuristics mark the assets stale after a few days. Additionally, the browser requires a validation request for each asset. In this case, bundling and minification provide a performance improvement even after the first page request.
|
||||
Bundling and minification primarily improve the first page request load time. Once a web page has been requested, the browser caches the static assets (JavaScript, CSS, and images). So, bundling and minification don't improve performance when requesting the same page, or pages, on the same site requesting the same assets. If the expires header isn't set correctly on the assets and if bundling and minification aren't used, the browser's freshness heuristics mark the assets stale after a few days. Additionally, the browser requires a validation request for each asset. In this case, bundling and minification provide a performance improvement even after the first page request.
|
||||
|
||||
### Bundling
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ The following is an example project file (`.csproj`) after configuration. The `{
|
|||
|
||||
* Specify `WasmMainJSPath` to point to a file on disk. This file is published with the app, but use of the file isn't required if you're integrating .NET into an existing JS app.
|
||||
|
||||
In the following example, the JS file on disk is `main.js`, but any JS filename is permissable:
|
||||
In the following example, the JS file on disk is `main.js`, but any JS filename is permissible:
|
||||
|
||||
```xml
|
||||
<WasmMainJSPath>main.js</WasmMainJSPath>
|
||||
|
|
Loading…
Reference in New Issue