Skip to content

Commit 02d1f5b

Browse files
author
niuweili
committed
Merge branch 'feat/rum_docs@nwl'
2 parents ee6fd36 + 6b79f6e commit 02d1f5b

2 files changed

Lines changed: 0 additions & 22 deletions

File tree

flashduty/en/2. RUM/3. Performance Monitoring/2. Metrics.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,6 @@ document.addEventListener("scroll", function handler() {
114114
});
115115
```
116116

117-
### How to Calculate Loading Time
118-
119-
To accommodate modern web applications, loading time monitors network requests and DOM changes.
120-
121-
**Initial loading**: The loading time equals the longer of the following two:
122-
123-
- The difference between `navigationStart` and `loadEventEnd`, or
124-
- The difference between `navigationStart` and the time when the page first becomes inactive. See [How to Calculate Page Activity](#how-to-calculate-page-activity) for details.
125-
126-
**SPA route changes**: The loading time equals the difference between the URL change and the time when the page first becomes inactive. See [How to Calculate Page Activity](#how-to-calculate-page-activity) for details.
127-
128117
## Considerations
129118

130119
### 1. Naming Conventions

flashduty/zh/2. RUM/3. 性能监控/2. 指标上报.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,6 @@ document.addEventListener("scroll", function handler() {
114114
});
115115
```
116116

117-
### 如何计算加载时间
118-
119-
为了适应现代 Web 应用程序,加载时间会监控网络请求和 DOM 变更。
120-
121-
**初始加载**:加载时间等于以下两者中较长的一个:
122-
123-
- `navigationStart``loadEventEnd` 之间的差值,或
124-
- `navigationStart` 和页面首次无活动的时间之间的差值。有关详细信息,请参见[如何计算页面活动](#如何计算页面活动)
125-
126-
**SPA 路由更改**:加载时间等于 URL 更改和页面首次无活动的时间之间的差值。有关详细信息,请参见[如何计算页面活动](#如何计算页面活动)
127-
128117
## 注意事项
129118

130119
### 1. 命名规范

0 commit comments

Comments
 (0)