Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The activated read-only property of the FetchLaterResult interface returns a boolean specifying whether the deferred fetch has been sent.
A Boolean.
POST request for around one minute and create a function to check if sentconst result = fetchLater("https://report.example.com", {
method: "POST",
body: JSON.stringify(myReport),
activateAfter: 60000 /* 1 minute */,
});
function checkIfFetched() {
return result.activated;
}