WICG / pending-beacon

A better beaconing API
Other
43 stars 8 forks source link

[Fetch-Based API] Promise #74

Closed mingyc closed 9 months ago

mingyc commented 1 year ago

Context: #70 #71

To maintain the same semantic, browser should probably resolve Promise when the pending request is sent.

But in reality, the Promise may or may not be resolved, or resolved when the page is in bfcache and JS context is frozen. User should not rely on it.

mingyc commented 9 months ago

fetchLater() API returns FetchLaterResult instead of Promise. See spec https://whatpr.org/fetch/1647.html#dom-fetchlaterresult-activated and the discussions in