From e75eca6903012ead814220d7ad83d8f9fb6ece04 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Tue, 19 Nov 2024 12:52:23 +0100 Subject: [PATCH 1/3] Add requestIdleCallback feature --- features/{draft/spec => }/requestidlecallback.yml | 4 ++-- features/{draft/spec => }/requestidlecallback.yml.dist | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename features/{draft/spec => }/requestidlecallback.yml (60%) rename features/{draft/spec => }/requestidlecallback.yml.dist (100%) diff --git a/features/draft/spec/requestidlecallback.yml b/features/requestidlecallback.yml similarity index 60% rename from features/draft/spec/requestidlecallback.yml rename to features/requestidlecallback.yml index 6419efc235d..c35d9f59832 100644 --- a/features/draft/spec/requestidlecallback.yml +++ b/features/requestidlecallback.yml @@ -1,7 +1,7 @@ -draft_date: 2024-09-09 name: requestIdleCallback() Cooperative Scheduling of Background Tasks -description: TODO +description: "The `requestIdleCallback()` API queues JavaScript to be executed in idle browser time, either at the end of a frame or when the user is inactive." spec: https://w3c.github.io/requestidlecallback/ +caniuse: requestidlecallback compat_features: - api.IdleDeadline - api.IdleDeadline.didTimeout diff --git a/features/draft/spec/requestidlecallback.yml.dist b/features/requestidlecallback.yml.dist similarity index 100% rename from features/draft/spec/requestidlecallback.yml.dist rename to features/requestidlecallback.yml.dist From 3df749292cdeceed9c1993f61895ebe2fe8cd9b3 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Tue, 19 Nov 2024 12:55:31 +0100 Subject: [PATCH 2/3] fix name --- features/requestidlecallback.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/requestidlecallback.yml b/features/requestidlecallback.yml index c35d9f59832..563d0549ae1 100644 --- a/features/requestidlecallback.yml +++ b/features/requestidlecallback.yml @@ -1,4 +1,4 @@ -name: requestIdleCallback() Cooperative Scheduling of Background Tasks +name: requestIdleCallback() description: "The `requestIdleCallback()` API queues JavaScript to be executed in idle browser time, either at the end of a frame or when the user is inactive." spec: https://w3c.github.io/requestidlecallback/ caniuse: requestidlecallback From 5662d5d9b36330378f3c8843b26c0ed8be7d2c52 Mon Sep 17 00:00:00 2001 From: Dietrich Ayala <50103+autonome@users.noreply.github.com> Date: Wed, 20 Nov 2024 09:15:35 -0500 Subject: [PATCH 3/3] Update features/requestidlecallback.yml Co-authored-by: Daniel D. Beck --- features/requestidlecallback.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/requestidlecallback.yml b/features/requestidlecallback.yml index 563d0549ae1..87edea1d731 100644 --- a/features/requestidlecallback.yml +++ b/features/requestidlecallback.yml @@ -1,5 +1,5 @@ name: requestIdleCallback() -description: "The `requestIdleCallback()` API queues JavaScript to be executed in idle browser time, either at the end of a frame or when the user is inactive." +description: "The `requestIdleCallback()` API queues a function that runs in idle browser time, either at the end of a frame or when the user is inactive. Also known as the background tasks API." spec: https://w3c.github.io/requestidlecallback/ caniuse: requestidlecallback compat_features: