Re: [whatwg/fetch] preload, destinations, and module scripts (#486)

> We don't do that for style, do we? Seems a little "magic".

Indeed. But it's kind of crucial for usefully preloading modules, which are expected to be deep graphs. If we don't add this to preload, then preload is largely useless for modules, and we'll need to invent a new way of preloading module graphs. Maybe that would be for the best though, because then we can avoid this whole "new destination" business?

> Module scripts in workers can be processed in the same way, so... no.

How can this be true? Why do we have separate destinations for script, serviceworker, sharedworker, and worker if they can all be processed the same way?

> It still seems cleaner to give module scripts their own MIME type, especially for other parts of the ecosystem (e.g., what if you put them in the Cache API or generate them dynamically), but I guess we're not going to go over that again?

-- 
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/486#issuecomment-280351981

Received on Thursday, 16 February 2017 14:55:05 UTC