Skip to content

Commit 1a4620b

Browse files
committed
Updated links
1 parent 63ba287 commit 1a4620b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

sites/cheerpj/src/content/docs/11-guides/Startup-time-optimization.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ To reduce startup time in production, CheerpJ lets you **preload** the modules y
2222

2323
## Overview of the workflow
2424

25-
1. Profile which runtime resources your app actually uses
26-
2. Pass those resources to `cheerpjInit` via `preloadResources`
25+
1. Profile which runtime resources your app actually uses using [`cjGetRuntimeResources`](/docs/reference/cjGetRuntimeResources)
26+
2. Pass those resources to [`cheerpjInit`](/docs/reference/cheerpjInit) via [`preloadResources`](/docs/reference/cheerpjInit#preloadresources)
2727

2828
### Step 1: Profile used runtime resources
2929

@@ -49,11 +49,9 @@ document.write(cjGetRuntimeResources());
4949

5050
The console may wrap the output in quotes (`"`). If it does, ignore the quotes.
5151

52-
> You can read more about the `cjGetRuntimeResources` [here](/docs/reference/cjGetRuntimeResources).
53-
5452
### Step 2: Enable preloading in your integration
5553

56-
Update your `cheerpjInit` call to include the `preloadResources` option.
54+
Update your [`cheerpjInit`](/docs/reference/cheerpjInit) call to include the [`preloadResources`](/docs/reference/cheerpjInit#preloadresources) option.
5755

5856
Example:
5957

@@ -66,9 +64,7 @@ cheerpjInit({
6664
});
6765
```
6866

69-
Note that profiling the resources with `cjGetRuntimeResources()` and providing the result to `preloadResources` must be done in separate sessions. First, profile the application in one session to generate the list of resources. Then, in subsequent sessions, pass this list to `cheerpjInit` to enable preloading.
70-
71-
> You can read more about the `preloadResources` init option [here](/docs/reference/cheerpjInit#preloadresources).
67+
Note that profiling the resources with [`cjGetRuntimeResources`](/docs/reference/cjGetRuntimeResources) and providing the result to [`preloadResources`](/docs/reference/cheerpjInit#preloadresources) must be done in separate sessions. First, profile the application in one session to generate the list of resources. Then, in subsequent sessions, pass this list to `cheerpjInit` to enable preloading.
7268

7369
## What changes after enabling preloading
7470

0 commit comments

Comments
 (0)