- From: Arthur Stolyar <notifications@github.com>
- Date: Mon, 24 Oct 2016 15:25:13 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Monday, 24 October 2016 22:25:40 UTC
@domenic in short, during _navigate_ `fetch` event there already could be an inflight request, or could not. So it either exists or not, and at a time of the `fetch` event response may not be available yet, hence a promise. But honestly I thought that it's going to be: ```js if (event.navigationPreload) { event.navigationPreload.then(() => ...); } ``` Not nullable promise. With nullable promise it would require checking that promise all the time. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/920#issuecomment-255883807
Received on Monday, 24 October 2016 22:25:40 UTC