Skip to content

Commit ae94cdb

Browse files
committed
linkfix
1 parent 36a4549 commit ae94cdb

1 file changed

Lines changed: 66 additions & 63 deletions

File tree

  • microsoft-edge/devtools-guide-chromium/performance

microsoft-edge/devtools-guide-chromium/performance/overview.md

Lines changed: 66 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ To switch between these two views, at the top of the **Performance** tool, use:
3434
* The **Go back to the live metrics page** (![The "Go back to the live metrics page" (house) icon, dimmed](./overview-images/house-icon.png)) button.
3535
* The **Show recent timeline sessions** dropdown list, to the right of that button.
3636

37-
**Detailed contents:**
37+
<!-- todo: update -->
38+
<!-- **Detailed contents:**
3839
* [Overview](#overview)
3940
* [Open the Performance tool](#open-the-performance-tool)
4041
* [Using the Command Menu](#using-the-command-menu)
@@ -43,14 +44,12 @@ To switch between these two views, at the top of the **Performance** tool, use:
4344
* [Interactions tab](#interactions-tab)
4445
* [Layout shifts tab](#layout-shifts-tab)
4546
* [View local and field metrics](#view-local-and-field-metrics)
46-
* [Compare your experience to the experience of your users](#compare-your-experience-to-the-experience-of-your-users)
4747
* [Simulate a real user environment](#simulate-a-real-user-environment)
48-
* [Configure your environment to better match that of your users](#configure-your-environment-to-better-match-that-of-your-users)
4948
* [Capture and analyze a performance report](#capture-and-analyze-a-performance-report)
5049
* [Record a performance profile](#record-a-performance-profile)
5150
* [Change capture settings](#change-capture-settings)
5251
* [Analyze a performance report](#analyze-a-performance-report)
53-
* [Improve performance with these tools](#improve-performance-with-these-tools)
52+
* [Improve performance with these tools](#improve-performance-with-these-tools) -->
5453

5554

5655
<!-- ====================================================================== -->
@@ -144,6 +143,69 @@ To open the **Performance** tool by using the **Command Menu**:
144143
<!-- ## Observe Core Web Vitals live https://developer.chrome.com/docs/devtools/performance/overview#live-metrics -->
145144
<!-- details about using this view -->
146145

146+
147+
<!-- ------------------------------ -->
148+
#### Using the demo page
149+
150+
The webpage in this directory is a demo for the [Monitor Core Web Vitals metrics](https://learn.microsoft.com/microsoft-edge/devtools-guide-chromium/performance/overview#monitor-core-web-vitals-metrics) section of the [Performance tool: Analyze your website's performance](https://learn.microsoft.com/microsoft-edge/devtools-guide-chromium/performance/overview) article in the Microsoft Edge DevTools documentation.
151+
152+
This webpage is designed to load and handle interactions slowly on purpose, in order to illustrate how the LCP, CLS, and INP metrics can be used in the Performance tool to identify and fix performance issues.
153+
154+
Use the **Performance** tool to view Core Web Vitals metrics in the initial, **Local metrics** view. The home page of the **Performance** tool shows **Local metrics**, which are performance metrics about the rendered webpage:
155+
156+
* **Largest Contentful Paint (LCP)** - How quickly the main content of the page loaded.
157+
* **Cumulative Layout Shift (CLS)** - A measure of the most recent unexpected page layout shift.
158+
* **Interaction to Next Paint (INP)** - The responsiveness of the most recent user interaction on the page.
159+
160+
161+
To produce a **poor** or **needs improvement** metric on the **LCP**, **CLS**, and **INP** cards in the **Performance** tool:
162+
163+
1. Open a webpage; for example, open the [Exploring the universe](https://microsoftedge.github.io/Demos/exploring-the-universe/) demo page in a new window or tab.
164+
165+
1. Right-click the demo page, and then select **Inspect**.
166+
167+
DevTools opens.
168+
169+
1. In the **Activity Bar** at top, select the **Performance** tool.
170+
171+
1. Maximize the window, and make the demo page pane wide, such as 60% of the width of the window.
172+
173+
If the demo page pane is too narrow, some cards might continue showing **good**, with a green value, which is not the intended result.
174+
175+
1. Optional, but recommended: Select **Next steps** pane > **Environment settings** card > **CPU throttling** dropdown > select **4x slowdown - recommended**.
176+
177+
1. Optional, but recommended: Select **Next steps** pane > **Environment settings** card > **Network throttling** dropdown > select **Slow 4G**.
178+
179+
1. Optional, but recommended: Select **Next steps** pane > **Environment settings** card > select the **Disable network cache** checkbox.
180+
181+
![Local metrics results: poor; needs improvement; and poor](./overview-images/local-metrics-results.png)
182+
183+
1. Right-click (or long-click) the **Refresh** button to the left of the **Address bar**, and then select **Empty cache and hard refresh**.
184+
185+
This ensures that the image is loaded again from the server, rather than from the local cache.
186+
187+
The **LCP** and **CLS** cards show an orange value and **needs improvement**, or a red value and **poor**, instead of a green value and **good**.
188+
189+
1. If the **LCP** or **CLS** card remains green and says **good** after the galaxy image finishes rendering, maximize the window and make the demo page pane wider.
190+
191+
The **LCP** card shows that the galaxy image took a long time to load. The card shows an orange value and **needs improvement**, or a red value and **poor**, instead of a green value and **good**. The engine identifies this image as the largest item to be rendered.
192+
193+
The **CLS** card illustrates that sudden, unexpected jumps in the layout can negatively impact users. This is also due to the image taking some time to load. By design, the demo webpage neglects to specify a height for the image, and so the page initially loads without reserving much space for the image. When the image starts appearing, the content below it suddenly jumps down.
194+
195+
1. After the galaxy image finishes rendering, in the rendered demo page, click one of the headings in the right-hand **Discoveries** column, such as **Heliocentric Theory (1543)**.
196+
197+
The **INP** card changes from not showing a value, to showing an orange value and **needs improvement**, or a red value and **poor**. An **INP** value is displayed.
198+
199+
1. In the **INP** card, click the INP value.
200+
201+
In the demo page, the **Discoveries** cards are designed to expand and re-render slowly, so that it takes a long time between clicking the heading and rendering the expanded card content. The delay is a random value between 100ms and 1000ms, resulting in a high INP value.
202+
203+
<!-- / end demo page steps -->
204+
205+
206+
<!-- ====================================================================== -->
207+
## Intro to Core Web Vitals metrics
208+
147209
To view **Local metrics** (Core Web Vitals metrics) instead of a profile, see [Switch between Local metrics view and recorded profile timeline view](#switch-between-local-metrics-view-and-recorded-profile-timeline-view), above.
148210

149211

@@ -221,65 +283,6 @@ To interact with a webpage to display the **Interaction to Next Paint (INP)** ca
221283
In the demo page, these values are designed to load slowly, so it takes a long time between clicking the value and rendering the corresponding content. It's a random value between 100ms and 1000ms, leading to a high INP metric.
222284

223285

224-
<!-- ------------------------------ -->
225-
#### Using the demo page
226-
227-
The webpage in this directory is a demo for the [Monitor Core Web Vitals metrics](https://learn.microsoft.com/microsoft-edge/devtools-guide-chromium/performance/overview#monitor-core-web-vitals-metrics) section of the [Performance tool: Analyze your website's performance](https://learn.microsoft.com/microsoft-edge/devtools-guide-chromium/performance/overview) article in the Microsoft Edge DevTools documentation.
228-
229-
This webpage is designed to load and handle interactions slowly on purpose, in order to illustrate how the LCP, CLS, and INP metrics can be used in the Performance tool to identify and fix performance issues.
230-
231-
Use the **Performance** tool to view Core Web Vitals metrics in the initial, **Local metrics** view. The home page of the **Performance** tool shows **Local metrics**, which are performance metrics about the rendered webpage:
232-
233-
* **Largest Contentful Paint (LCP)** - How quickly the main content of the page loaded.
234-
* **Cumulative Layout Shift (CLS)** - A measure of the most recent unexpected page layout shift.
235-
* **Interaction to Next Paint (INP)** - The responsiveness of the most recent user interaction on the page.
236-
237-
238-
To produce a **poor** or **needs improvement** metric on the **LCP**, **CLS**, and **INP** cards in the **Performance** tool:
239-
240-
1. Open a webpage; for example, open the [Exploring the universe](https://microsoftedge.github.io/Demos/exploring-the-universe/) demo page in a new window or tab.
241-
242-
1. Right-click the demo page, and then select **Inspect**.
243-
244-
DevTools opens.
245-
246-
1. In the **Activity Bar** at top, select the **Performance** tool.
247-
248-
1. Maximize the window, and make the demo page pane wide, such as 60% of the width of the window.
249-
250-
If the demo page pane is too narrow, some cards might continue showing **good**, with a green value, which is not the intended result.
251-
252-
1. Optional, but recommended: Select **Next steps** pane > **Environment settings** card > **CPU throttling** dropdown > select **4x slowdown - recommended**.
253-
254-
1. Optional, but recommended: Select **Next steps** pane > **Environment settings** card > **Network throttling** dropdown > select **Slow 4G**.
255-
256-
1. Optional, but recommended: Select **Next steps** pane > **Environment settings** card > select the **Disable network cache** checkbox.
257-
258-
![Local metrics results: poor; needs improvement; and poor](./images/local-metrics-results.png)
259-
260-
1. Right-click (or long-click) the **Refresh** button to the left of the **Address bar**, and then select **Empty cache and hard refresh**.
261-
262-
This ensures that the image is loaded again from the server, rather than from the local cache.
263-
264-
The **LCP** and **CLS** cards show an orange value and **needs improvement**, or a red value and **poor**, instead of a green value and **good**.
265-
266-
1. If the **LCP** or **CLS** card remains green and says **good** after the galaxy image finishes rendering, maximize the window and make the demo page pane wider.
267-
268-
The **LCP** card shows that the galaxy image took a long time to load. The card shows an orange value and **needs improvement**, or a red value and **poor**, instead of a green value and **good**. The engine identifies this image as the largest item to be rendered.
269-
270-
The **CLS** card illustrates that sudden, unexpected jumps in the layout can negatively impact users. This is also due to the image taking some time to load. By design, the demo webpage neglects to specify a height for the image, and so the page initially loads without reserving much space for the image. When the image starts appearing, the content below it suddenly jumps down.
271-
272-
1. After the galaxy image finishes rendering, in the rendered demo page, click one of the headings in the right-hand **Discoveries** column, such as **Heliocentric Theory (1543)**.
273-
274-
The **INP** card changes from not showing a value, to showing an orange value and **needs improvement**, or a red value and **poor**. An **INP** value is displayed.
275-
276-
1. In the **INP** card, click the INP value.
277-
278-
In the demo page, the **Discoveries** cards are designed to expand and re-render slowly, so that it takes a long time between clicking the heading and rendering the expanded card content. The delay is a random value between 100ms and 1000ms, resulting in a high INP value.
279-
280-
<!-- / end demo page steps -->
281-
282-
283286
<!-- ------------------------------ -->
284287
#### Interaction to Next Paint (INP)
285288

0 commit comments

Comments
 (0)