Skip to content

Commit 4325574

Browse files
authored
Merge pull request #556 from gavindoughtie/patch-1
Update code-splitting.md
2 parents c914441 + 31db61c commit 4325574

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/guides/code-splitting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ There are mainly two kinds of code splitting that can be accomplished with webpa
1414

1515
### Vendor code splitting
1616

17-
A typical application can depend on many third party libraries for framework/functionality needs. Unlike the application code, code present in these libraries do not change very often.
17+
A typical application can depend on many third party libraries for framework/functionality needs. Unlike application code, code present in these libraries does not change very often.
1818

19-
If we keep code from these libraries onto its own bundle, separate from the application code, we can leverage browser's caching mechanism to cache these files for longer durations on the end user's machine.
19+
If we keep code from these libraries in its own bundle, separate from the application code, we can leverage the browser's caching mechanism to cache these files for longer durations on the end user's machine.
2020

2121
For this to work, the `hash` portion in the vendor filename must remain constant, regardless of application code changes. Learn [how to split vendor/library](/guides/code-splitting-libraries) code using the CommonsChunkPlugin.
2222

@@ -31,7 +31,7 @@ Learn [how to split css](/guides/code-splitting-css) using the `ExtractTextWebpa
3131

3232
While resource splitting of the previous kind requires the user to specify the split points upfront in the configuration, one can also create dynamic split points in the application code.
3333

34-
This can be used for more granular chunking of code, for eg. as per our application routes or as per predicted user behaviour. This allows the user to load non-essential assets on demand.
34+
This can be used for more granular chunking of code, for example, per our application routes or as per predicted user behaviour. This allows the user to load non-essential assets on demand.
3535

3636
### Code splitting with `require.ensure()`
3737

0 commit comments

Comments
 (0)