You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* flag some links to update
* /webdriver-chromium/
* Revert "/webdriver-chromium/"
This reverts commit ef4620c.
* flag all web.dev
* flag developer.chrome.com
* Remove some todos and links
* todo pattern for web-dev links
* some flagged web.dev links
* add mdn link near web.dev link
* web.dev update links
* update web.dev links
* developer.chrome.com
* Handle todos
* format web.dev comments
* Format chrome link comments
* fix yaml
* condense comments
* event is fired
* roll back service workers change
* Update microsoft-edge/devtools/speed/get-started.md
* Removed outdated glitch link
---------
Co-authored-by: Patrick Brosset <[email protected]>
Copy file name to clipboardExpand all lines: microsoft-edge/dev-videos/index.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -685,8 +685,7 @@ The Microsoft Edge team specified and implemented the new EyeDropper API in coll
685
685
Many creative applications enable users to pick colors from parts of an app window or even from the entire screen, typically using an eyedropper metaphor. The EyeDropper API enables authors to use a browser-supplied eyedropper in the construction of custom color pickers on the web.
686
686
687
687
See also:
688
-
*[Picking colors of any pixel on the screen with the EyeDropper API | web.dev](https://web.dev/eyedropper/)
689
-
*[EyeDropper API - Web APIs | MDN developer.mozilla.org](https://developer.mozilla.org/docs/Web/API/EyeDropper_API)
688
+
*[EyeDropper API](https://developer.mozilla.org/docs/Web/API/EyeDropper_API) at MDN.
690
689
*[EyeDropper API demos](https://github.com/MicrosoftEdge/Demos/tree/main/eyedropper)
The [Payment Handler API](https://web.dev/web-based-payment-apps-overview/) allows web applications to handle payment requests on behalf of users. To log the payment request and response events for 3 days, even when DevTools isn't open:
112
+
The Payment Handler API allows web applications to handle payment requests on behalf of users. See [Payment Handler API](https://developer.mozilla.org/docs/Web/API/Payment_Handler_API) at MDN.
113
113
114
-
1. Open DevTools by right-clicking the webpage and selecting **Inspect**. Or by pressing **Ctrl+Shift+I** (Windows, Linux) or **Command+Option+I** (macOS).
114
+
To log the payment request and response events for 3 days, even when DevTools isn't open:
115
+
116
+
1. Right-click the webpage, and then select **Inspect**. DevTools opens.
117
+
118
+
Or, press **Ctrl+Shift+I** (Windows, Linux) or **Command+Option+I** (macOS).
115
119
116
120
1. In DevTools, on the main toolbar, select the **Application** tab. If that tab isn't visible, click the **More tabs** () button, or else the **More Tools** () button.
Copy file name to clipboardExpand all lines: microsoft-edge/devtools/performance/index.md
+11-19Lines changed: 11 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,10 +26,12 @@ ms.date: 09/04/2023
26
26
27
27
_Runtime performance_ is how your page performs when it's running, as opposed to loading. The following tutorial teaches you how to use the DevTools **Performance** tool to analyze runtime performance.
28
28
29
-
The skills you learn in this tutorial are useful for analyzing loading, interactivity, and visual stability of your web content, which are also key indicators for [Core Web Vitals](https://web.dev/vitals/). Each of the Core Web Vitals represents a distinct facet of the user experience, is measurable in the field, and reflects the real-world experience of a critical user-centric outcome. You can see these Core Web Vitals in the **Performance** tool.
29
+
The skills you learn in this tutorial are useful for analyzing loading, interactivity, and visual stability of your web content, which are also key indicators for Core Web Vitals. Each of the Core Web Vitals represents a distinct facet of the user experience, is measurable in the field, and reflects the real-world experience of a critical user-centric outcome. You can see these Core Web Vitals in the **Performance** tool.
30
30
31
31
See also:
32
-
-[Optimize website speed using Lighthouse](../speed/get-started.md)
32
+
*[Web Vitals](https://web.dev/articles/vitals)<!-- web.dev link ok, only doc'd there --> at web.dev.
33
+
*[Terminology](./overview.md#terminology) in _Performance tool: Analyze your website's performance_.
34
+
*[Optimize website speed using Lighthouse](../speed/get-started.md)

185
187
186
188
The problem with the unoptimized code is that, in each animation frame, it changes the style for each icon, and then queries the position of each icon on the page. Because the styles changed, the browser doesn't know if each icon position changed, so it has to re-layout the icon in order to compute the new position.
187
-
<!--
188
-
> To learn more, see [Avoid forced synchronous layouts](https://web.dev/avoid-large-complex-layouts-and-layout-thrashing/#avoid-forced-synchronous-layouts).
189
-
-->
189
+
190
+
See also:
191
+
*[Avoid forced synchronous layouts](https://web.dev/articles/avoid-large-complex-layouts-and-layout-thrashing#avoid_forced_synchronous_layouts)<!-- web.dev link ok, no perf doc'n at mdn --> in _Avoid large, complex layouts and layout thrashing_ at web.dev.
190
192
191
193
192
194
<!-- ------------------------------ -->
@@ -267,15 +269,14 @@ We then adjust the direction of the icon, but this time we don't read `element.o
267
269
268
270
Finally, we set the new position of the icon, but this time we use `element.style.transform` instead of `element.style.top`. Using `element.style.transform` is faster, because the CSS `transform` property can be applied by the browser rendering engine without having to recalculate the layout of the page. When using the `transform` property, the browser considers each icon as an individual layer, and then displays these layers in the correct positions by re-compositing the final image.
269
271
270
-
To learn more, see [Use transform and opacity changes for animations](https://web.dev/stick-to-compositor-only-properties-and-manage-layer-count/#use-transform-and-opacity-changes-for-animations).
272
+
See also:
273
+
*[Avoid properties that trigger layout or paint](https://web.dev/articles/animations-guide#triggers)<!-- web.dev link ok, not doc'd at mdn --> in _How to create high-performance CSS animations_ at web.dev.
274
+
*[Transitioning opacity](https://developer.mozilla.org/docs/Web/CSS/opacity#transitioning_opacity) in _opacity_ at MDN.
<!--The foundation for understanding performance is the RAIL model. The RAIL model teaches you the performance metrics that are most important to your users.
277
-
To learn more, see [Measure Performance With The RAIL Model](https://web.dev/rail/). -->
278
-
279
280
To get more comfortable with the **Performance** tool, practice profiling your pages and analyzing the results.
280
281
281
282
If you have any questions about your results, in the **Activity Bar**, select **Help** () > **Feedback**. Or, press **Alt+Shift+I** (Windows, Linux) or **Option+Shift+I** (macOS).
@@ -284,16 +285,7 @@ Or, [file an issue on the MicrosoftEdge / DevTools repo](https://github.com/Micr
284
285
285
286
In your feedback, include screenshots or links to reproducible pages, if possible.
286
287
287
-
There are many ways to improve runtime performance. This article focused on one particular animation bottleneck to give you a focused tour of the **Performance** tool, but it's only one of many bottlenecks you may encounter. <!-- The rest of the Rendering Performance series has a lot of good tips for improving various aspects of runtime performance, such as: -->
* [Reduce the scope and complexity of style calculations](https://web.dev/reduce-the-scope-and-complexity-of-style-calculations/)
292
-
* [Avoid large, complex layouts and layout thrashing](https://web.dev/avoid-large-complex-layouts-and-layout-thrashing/)
293
-
* [Simplify paint complexity and reduce paint areas](https://web.dev/simplify-paint-complexity-and-reduce-paint-areas/)
294
-
* [Stick to Compositor-Only Properties and Manage Layer Count](https://web.dev/stick-to-compositor-only-properties-and-manage-layer-count/)
295
-
* [Debounce your input handlers](https://web.dev/debounce-your-input-handlers/)
296
-
-->
288
+
There are many ways to improve runtime performance. This article focused on one particular animation bottleneck to give you a focused tour of the **Performance** tool, but it's only one of many bottlenecks you may encounter.
<!-- covers basic nav between the two states, and what to use them for, not how to use either view -->
63
57
64
58
The **Performance** tool displays local metrics for page interactions, and lets you record CPU performance profiles of your web applications. Analyze profiles to find potential performance bottlenecks and ways that you can optimize resource use.
@@ -159,14 +153,15 @@ Use the **Performance** tool to view Core Web Vitals metrics in the initial, **L
159
153
160
154
<!-- ---------------------------------- -->
161
155
#### Terminology
156
+
<!-- not in upstream -->
162
157
163
158
| Term | Description | Docs |
164
159
|---|---|---|
165
-
| Web Vitals | A large set of metrics giving unified guidance to delivering a great user experience on the web. |[Web Vitals](https://web.dev/articles/vitals)|
166
-
| Core Web Vitals | The subset of Web Vitals that apply to all web pages, and should be measured by all site owners. Each of the Core Web Vitals represents a distinct facet of the user experience, is measurable in the field, and reflects the real-world experience of a critical user-centric outcome. |[Core Web Vitals](https://web.dev/articles/vitals#core-web-vitals)in _Web Vitals_|
167
-
| Largest Contentful Paint (LCP) | Measures _loading_ performance. To provide a good user experience, LCP should occur within 2.5 seconds of when the page first starts loading. The render time of the largest image, text block, or video visible in the viewport, relative to when the user first navigated to the page. |[Largest Contentful Paint (LCP)](https://web.dev/articles/lcp), [Optimize LCP](https://web.dev/articles/optimize-lcp)|
168
-
| Cumulative Layout Shift (CLS) | Measures _visual stability_. To provide a good user experience, pages should maintain a CLS of 0.1. or less. The largest burst of layout shift scores for every unexpected layout shift that occurs during the entire lifecycle of a page. |[Cumulative Layout Shift (CLS)](https://web.dev/articles/cls), [Optimize CLS](https://web.dev/articles/optimize-cls)|
169
-
| Interaction to Next Paint (INP) | Measures _interactivity_. To provide a good user experience, pages should have a INP of 200 milliseconds or less. The page's overall responsiveness to user interactions, based on the latency of all click, tap, and keyboard interactions that occur throughout the lifespan of a user's visit to a page. |[Interaction to Next Paint (INP)](https://web.dev/articles/inp), [Optimize INP](https://web.dev/articles/optimize-inp)|
160
+
| Web Vitals | A large set of metrics giving unified guidance to delivering a great user experience on the web. |[Web Vitals](https://web.dev/articles/vitals)<!-- web.dev link ok, cwv not doc'd at mdn --> at web.dev.|
161
+
| Core Web Vitals | The subset of Web Vitals that apply to all web pages, and should be measured by all site owners. Each of the Core Web Vitals represents a distinct facet of the user experience, is measurable in the field, and reflects the real-world experience of a critical user-centric outcome. |[Core Web Vitals](https://web.dev/articles/vitals#core-web-vitals)<!-- web.dev link ok, cwv not doc'd at mdn -->in _Web Vitals_ at web.dev.|
162
+
| Largest Contentful Paint (LCP) | Measures _loading_ performance. To provide a good user experience, LCP should occur within 2.5 seconds of when the page first starts loading. The render time of the largest image, text block, or video visible in the viewport, relative to when the user first navigated to the page. |[Largest Contentful Paint (LCP)](https://developer.mozilla.org/docs/Glossary/Largest_contentful_paint) in Glossary at MDN. [LargestContentfulPaint](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint) at MDN.|
163
+
| Cumulative Layout Shift (CLS) | Measures _visual stability_. To provide a good user experience, pages should maintain a CLS of 0.1. or less. The largest burst of layout shift scores for every unexpected layout shift that occurs during the entire lifecycle of a page. |[Cumulative Layout Shift (CLS)](https://developer.mozilla.org/docs/Glossary/CLS) in Glossary at MDN. [LayoutShift](https://developer.mozilla.org/docs/Web/API/LayoutShift) at MDN.|
164
+
| Interaction to Next Paint (INP) | Measures _interactivity_. To provide a good user experience, pages should have a INP of 200 milliseconds or less. The page's overall responsiveness to user interactions, based on the latency of all click, tap, and keyboard interactions that occur throughout the lifespan of a user's visit to a page. |[Interaction to Next Paint (INP)](https://developer.mozilla.org/docs/Glossary/Interaction_to_next_paint) in Glossary at MDN. [PerformanceEventTiming](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming) at MDN.|
170
165
| local metrics, local data | The LCP, CLS, and INP metrics. They are captured locally on the inspected webpage, and are updated as you interact with the page. ||
171
166
172
167
@@ -177,7 +172,7 @@ To produce a **poor** or **needs improvement** metric on the **LCP**, **CLS**, a
177
172
178
173
1. Open a webpage, such as the [Exploring the universe](https://microsoftedge.github.io/Demos/exploring-the-universe/) demo, in a new window or tab.
179
174
180
-
The [Exploring the universe](https://microsoftedge.github.io/Demos/exploring-the-universe/) demo page 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.
175
+
The "Exploring the universe" demo page 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.
181
176
182
177
1. Right-click the webpage and then select **Inspect**.
183
178
@@ -366,6 +361,12 @@ Discover other tools that can help you improve your website's performance:
366
361
|**Performance** tool |[View layers information](../performance/reference.md#view-layers-information) in _Performance features reference_|
> Portions of this page are modifications based on work created and [shared by Google](https://developers.google.com/terms/site-policies) and used according to terms described in the [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0).
0 commit comments