From 9b99039155261f80d7532d180ad4c039f6e2a32a Mon Sep 17 00:00:00 2001 From: Abin K Paul Date: Sat, 18 Jun 2022 20:22:37 +0530 Subject: [PATCH 1/5] Add Render Blocking Status to PerformanceResourceTiming --- index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.html b/index.html index a656902..43f7ed9 100644 --- a/index.html +++ b/index.html @@ -380,6 +380,7 @@

readonly attribute unsigned long long transferSize; readonly attribute unsigned long long encodedBodySize; readonly attribute unsigned long long decodedBodySize; + readonly attribute DOMString renderBlockingStatus; [Default] object toJSON(); }; @@ -698,6 +699,12 @@

+

+ The renderBlockingStatus getter steps are to return + "blocking" if this's timing info's [=fetch timing info/ + render-blocking=] is true, else "non-blocking" +

A user agent implementing PerformanceResourceTiming would need to include "resource" in From a4657f205ccdb9585e21f47a1d634b8dc32ad6c9 Mon Sep 17 00:00:00 2001 From: Abin K Paul Date: Mon, 1 Aug 2022 22:39:08 +0530 Subject: [PATCH 2/5] Change render blocking status to enum --- index.html | 46 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 41 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 43f7ed9..1c9919d 100644 --- a/index.html +++ b/index.html @@ -380,7 +380,7 @@

readonly attribute unsigned long long transferSize; readonly attribute unsigned long long encodedBodySize; readonly attribute unsigned long long decodedBodySize; - readonly attribute DOMString renderBlockingStatus; + readonly attribute RenderBlockingStatusType renderBlockingStatus; [Default] object toJSON(); }; @@ -410,6 +410,11 @@

info=] resource info.

+

+ A PerformanceResourceTiming has an associated + {{RenderBlockingStatusType}} render blocking status. +

The PerformanceResourceTiming interface participates in the

- The renderBlockingStatus getter steps are to return - "blocking" if this's timing info's [=fetch timing info/ - render-blocking=] is true, else "non-blocking" + The renderBlockingStatus getter steps are to return the + render blocking status + for this.

A user agent implementing PerformanceResourceTiming would need @@ -711,6 +715,38 @@

{{PerformanceObserver/supportedEntryTypes}}. This allows developers to detect support for Resource Timing.

+
+

+ RenderBlockingStatusType enum +

+
+            enum RenderBlockingStatusType {
+                "blocking",
+                "non-blocking"
+            };
+          
+

+ The values are defined as follows: +

+
+
+ blocking +
+
+ Render blocking status where this's timing info's [=fetch timing info/ + render-blocking=] is true. +
+
+ non-blocking +
+
+ Render blocking status where this's timing info's [=fetch timing info/ + render-blocking=] is false. +
+
+
From 4bc36c565a852c0feb11180aa3ed2ecbc7e7c734 Mon Sep 17 00:00:00 2001 From: Abin K Paul <36098125+abinpaul1@users.noreply.github.com> Date: Tue, 9 Aug 2022 18:26:16 +0530 Subject: [PATCH 3/5] Change 'render blocking' to render-blocking --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 1c9919d..2101229 100644 --- a/index.html +++ b/index.html @@ -413,7 +413,7 @@

A PerformanceResourceTiming has an associated {{RenderBlockingStatusType}} render blocking status. + "PerformanceResourceTiming">render-blocking status.

The PerformanceResourceTiming interface participates in the @@ -706,7 +706,7 @@

The renderBlockingStatus getter steps are to return the - render blocking status + render-blocking status for this.

@@ -733,7 +733,7 @@

blocking
- Render blocking status where this's this's timing info's [=fetch timing info/ render-blocking=] is true.
@@ -741,7 +741,7 @@

non-blocking
- Render blocking status where this's this's timing info's [=fetch timing info/ render-blocking=] is false.
From b2d7aecaba156e55c5cfd4e28ec9d368f6a7d5da Mon Sep 17 00:00:00 2001 From: Abin K Paul <36098125+abinpaul1@users.noreply.github.com> Date: Wed, 10 Aug 2022 22:35:56 +0530 Subject: [PATCH 4/5] Update getter steps to use timing info --- index.html | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index 2101229..c6dd93b 100644 --- a/index.html +++ b/index.html @@ -705,9 +705,12 @@

- The renderBlockingStatus getter steps are to return the - render-blocking status - for this. + The renderBlockingStatus getter steps are to return + blocking + if this's timing + info's [=fetch timing info/render-blocking=] is true + else non-blocking + and the relevant global object for this.

A user agent implementing PerformanceResourceTiming would need @@ -733,17 +736,13 @@

blocking
- Render-blocking status where this's timing info's [=fetch timing info/ - render-blocking=] is true. + The resource can potentially block rendering.
non-blocking
- Render-blocking status where this's timing info's [=fetch timing info/ - render-blocking=] is false. + The resource will not block rendering.

From 41acb220e3f1005319672c9bfb08e6371c588e1f Mon Sep 17 00:00:00 2001 From: Abin K Paul <36098125+abinpaul1@users.noreply.github.com> Date: Wed, 10 Aug 2022 23:41:00 +0530 Subject: [PATCH 5/5] Fix up getter steps --- index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index c6dd93b..9dc4a8e 100644 --- a/index.html +++ b/index.html @@ -708,9 +708,8 @@

The renderBlockingStatus getter steps are to return blocking if this's timing - info's [=fetch timing info/render-blocking=] is true - else non-blocking - and the relevant global object for this. + info's [=fetch timing info/render-blocking=] is true; otherwise + non-blocking.

A user agent implementing PerformanceResourceTiming would need