Closed mingyc closed 9 months 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.
fetchLater() API returns FetchLaterResult instead of Promise. See spec https://whatpr.org/fetch/1647.html#dom-fetchlaterresult-activated and the discussions in
fetchLater()
FetchLaterResult
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.