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

I don't think it's feasible to change the MIME type; it means people won't be able to use JavaScript modules until they upgrade their server. In any case, let's keep that as a separate thread, if you want to continue pursuing it.

rel=modulepreload sounds pretty good to me. It does lack an imperative API counterpart (in non-DOM contexts), but then, so does rel=preload, right? Since fetch() doesn't have the ability to set the destination? So there's no way with current technology to fetch a module script (or module script graph) and have the browser start lazily compiling. Same for any non-"" destination, really.

I guess speccing rel=modulepreload is fairly simple: it just performs "fetch a module script graph" given a URL. If people are on board with that, I can do that pretty simply. Would love to hear @yoavweiss's thoughts.

-- 
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-280355453

Received on Thursday, 16 February 2017 15:06:43 UTC