Re: [whatwg/fetch] Request's associated element (#912)

> Is this something that would need to be passed through a service worker that does `evt.respondWith(fetch(evt.request))`?

At least for the usecase we have in mind, that's not necessary.



> Also, how would this interact with the element lifecycle? For example, if the element is removed and discarded during the fetch, will the fetch keep it alive?

Ideally we'd want to keep around a weak pointer to that element, so that a pending fetch, or a buffered ElementTiming entry won't keep it alive. Not sure what's the equivalent spec concept.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/912#issuecomment-505048700

Received on Monday, 24 June 2019 15:00:45 UTC