Skip to content

Commit 2a005dd

Browse files
authored
Add FetchLater API (#2194)
1 parent 430691e commit 2a005dd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

custom/idl/fetch.idl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Remove when https://github.com/whatwg/fetch/pull/1647 is merged
2+
3+
dictionary DeferredRequestInit : RequestInit {
4+
DOMHighResTimeStamp activateAfter;
5+
};
6+
7+
[Exposed=Window]
8+
interface FetchLaterResult {
9+
readonly attribute boolean activated;
10+
};
11+
12+
partial interface Window {
13+
[NewObject] FetchLaterResult fetchLater(RequestInfo input, optional DeferredRequestInit init = {});
14+
};

0 commit comments

Comments
 (0)