Re: [w3ctag/design-reviews] <link> rel="modulepreload" (#213)

So it isn't actually clear that you can polyfill this for CSS. Is it possible to actually get access to all of the bytes for all `@import`'d resources in a CSS file? What if they're x-origin but not CORS'd? There are likely similar problems for JS.

I agree that `fetch()` feels weird here, but I'm not sure where else to do this. Perhaps one way to think about it is, instead of an option to `fetch()`, it could be something we teach `Body` about?:

```js
let sheet = await fetch("sheet.css");
let deps = await sheet.dependencies(); // an iterable of URLs? IDK.
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/213#issuecomment-379429321

Received on Saturday, 7 April 2018 03:43:10 UTC