Re: [whatwg/fetch] consider exposing and allowing script to set Request priority (#436)

> For example, the UA defers sending importance=low requests to the SW because of the developer intention

AFAICT this isn't really permitted by the spec today.  The fetching algorithm does not have any variation in how Handle Fetch is invoked.  I think this kind of observable change would have to be discussed as a separate issue.

Also, I highly doubt prioritization before the service worker would be worth the complexity.  Unless the service worker is doing blocking operations, like spinning a loop on js-level computations, then there should be very little request queueing in front of the service worker.  The one exception is when you need to spawn the service worker, but in that case I don't see how prioritization is going to make anything faster.

-- 
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/436#issuecomment-396607783

Received on Tuesday, 12 June 2018 14:23:21 UTC