From 1f3f162d4e061930910b5ba05dbc4c4d8d0ed45c Mon Sep 17 00:00:00 2001
From: Annie Sullivan Privacy and Security
mark or measure recorded by any script included on the page can be read by
any other script running on the same page, regardless of origin.
Developers are encouraged to use the following Recommended Mark Names to + mark common timings. The user agent is responsible for storing a new + timestamp under the specified mark name for Recommended Mark Names, just + like any user specified mark name. The user agent does not validate that the + usage of the Recommended Mark Name is appropriate or consistent with its + description.
+Thanks to
From da9b241084eb2c8d947dfdfb6a9afaa0cc31a2c9 Mon Sep 17 00:00:00 2001
From: Annie Sullivan Convert a name to a timestamp
The PerformanceTiming interface was defined in [[NAVIGATION-TIMING]] and is now considered obsolete. The use of names from the PerformanceTiming interface is supported to remain backwards compatible, but there are no plans to extend this functionality to names in the PerformanceNavigationTiming interface defined in [[NAVIGATION-TIMING-2]] (or other interfaces) in the future.
Developers are encouraged to use the following Recommended Mark Names to + mark common timings. The user agent is responsible for storing a new + timestamp under the specified mark name for Recommended Mark Names, just + like any user-specified mark name. The user agent does not validate that the + usage of the Recommended Mark Name is appropriate or consistent with its + description.
+Developers are encouraged to use the following Recommended Mark Names to - mark common timings. The user agent is responsible for storing a new - timestamp under the specified mark name for Recommended Mark Names, just - like any user specified mark name. The user agent does not validate that the - usage of the Recommended Mark Name is appropriate or consistent with its - description.
-Thanks to
From 418ebf1a6a4883dd32c182b054c6b3ef7e346817 Mon Sep 17 00:00:00 2001
From: Annie Sullivan Convert a name to a timestamp
Developers are encouraged to use the following Recommended Mark Names to - mark common timings. The user agent is responsible for storing a new - timestamp under the specified mark name for Recommended Mark Names, just - like any user-specified mark name. The user agent does not validate that the - usage of the Recommended Mark Name is appropriate or consistent with its - description.
+Developers are encouraged to use the following recommended mark names to + mark common timings. The user agent does not validate that the usage of + the recommended mark name is appropriate or consistent with its + description.
+Adding such recommended mark names can help performance + tools tailor guidance to a site. These mark names can also help real user + monitoring providers and browsers collect web developer signals regarding + their application's performance at scale, and surface this information to + developers without requiring any site-specific work.
Developers are encouraged to use the following recommended mark names to mark common timings. The user agent does not validate that the usage of - the recommended mark name is appropriate or consistent with its - description.
+ these names is appropriate or consistent with its description.Adding such recommended mark names can help performance tools tailor guidance to a site. These mark names can also help real user - monitoring providers and browsers collect web developer signals regarding + monitoring providers and user agents collect web developer signals regarding their application's performance at scale, and surface this information to developers without requiring any site-specific work.
Developers are encouraged to use the following recommended mark names to mark common timings. The user agent does not validate that the usage of these names is appropriate or consistent with its description.
@@ -406,13 +406,13 @@Developers are encouraged to use the following recommended mark names to mark common timings. The user agent does not validate that the usage of these names is appropriate or consistent with its description.
@@ -406,16 +406,31 @@In this example, the page asynchonously initializes a chat widget, a + searchbox, and a newsfeed upon loading. When finished, the + mark_fully_loaded mark name enables lab tools and analytics providers to + automatically show the timing. +
++ window.addEventListener("load", (event) => { + Promise.all([ + loadChatWidget(), + initializeSearchAutocomplete(), + initializeNewsfeed()]).then(() => { + performance.mark('mark_fully_loaded'); + }); + }); +
In this example, the page asynchonously initializes a chat widget, a searchbox, and a newsfeed upon loading. When finished, the - mark_fully_loaded mark name enables lab tools and analytics providers to - automatically show the timing. + "mark_fully_loaded" mark name enables lab tools and analytics + providers to automatically show the timing.
window.addEventListener("load", (event) => { From 727e0f17ecc9eb573639ea95e9a79f5206de30a3 Mon Sep 17 00:00:00 2001 From: Annie SullivanDate: Mon, 6 Nov 2023 14:54:02 +0000 Subject: [PATCH 08/11] Fix quote placement --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 4b63d7b..e9d5aff 100644 --- a/index.html +++ b/index.html @@ -406,19 +406,19 @@ Recommended mark names
their application's performance at scale, and surface this information to developers without requiring any site-specific work.-
- "mark_fully_loaded"
+- "mark_fully_loaded"
- The time when the page is considered fully loaded as marked by the developer in their application.
-- "mark_fully_visible"
+- "mark_fully_visible"
- The time when the page is considered fully visible to an end-user as marked by the developer in their application.
-- "mark_interactive"
+- "mark_interactive"
- The time when the page is considered interactive to an end-user as marked by the developer in their application.
In this example, the page asynchonously initializes a chat widget, a searchbox, and a newsfeed upon loading. When finished, the - "mark_fully_loaded" mark name enables lab tools and analytics + "mark_fully_loaded" mark name enables lab tools and analytics providers to automatically show the timing.
From 75636d533440371d98902050d6478ba42a1e2591 Mon Sep 17 00:00:00 2001 From: Annie SullivanDate: Mon, 6 Nov 2023 15:57:08 +0000 Subject: [PATCH 09/11] Addressed review comments --- index.html | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/index.html b/index.html index e9d5aff..e6bba9b 100644 --- a/index.html +++ b/index.html @@ -398,7 +398,7 @@ Convert a name to a timestamp
Developers are encouraged to use the following recommended mark names to - mark common timings. The user agent does not validate that the usage of + mark common timings. The user agent does not validate that the usage of these names is appropriate or consistent with its description.
Adding such recommended mark names can help performance tools tailor guidance to a site. These mark names can also help real user @@ -416,21 +416,23 @@
In this example, the page asynchonously initializes a chat widget, a - searchbox, and a newsfeed upon loading. When finished, the - "mark_fully_loaded" mark name enables lab tools and analytics - providers to automatically show the timing. -
-- window.addEventListener("load", (event) => { - Promise.all([ - loadChatWidget(), - initializeSearchAutocomplete(), - initializeNewsfeed()]).then(() => { - performance.mark('mark_fully_loaded'); ++In this example, the page asynchonously initializes a chat widget, a + searchbox, and a newsfeed upon loading. When finished, the + "mark_fully_loaded" mark name enables lab tools and analytics + providers to automatically show the timing. +
++ window.addEventListener("load", (event) => { + Promise.all([ + loadChatWidget(), + initializeSearchAutocomplete(), + initializeNewsfeed()]).then(() => { + performance.mark('mark_fully_loaded'); + }); }); - }); -+ +
Developers are encouraged to use the following recommended mark names to - mark common timings. The user agent does not validate that the usage of + mark common timings. The user agent does not validate that the usage of these names is appropriate or consistent with its description.
Adding such recommended mark names can help performance
tools tailor guidance to a site. These mark names can also help real user
From 3a3e0df5a60f599f88dc87218fd97ec6a467d78d Mon Sep 17 00:00:00 2001
From: Annie Sullivan Convert a name to a timestamp
The PerformanceTiming interface was defined in [[NAVIGATION-TIMING]] and is now considered obsolete. The use of names from the PerformanceTiming interface is supported to remain backwards compatible, but there are no plans to extend this functionality to names in the PerformanceNavigationTiming interface defined in [[NAVIGATION-TIMING-2]] (or other interfaces) in the future.
Developers are encouraged to use the following recommended mark names to mark common timings. The user agent does not validate that the usage of