- From: James Browning <notifications@github.com>
- Date: Thu, 01 Nov 2018 22:10:40 +0000 (UTC)
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 1 November 2018 22:11:03 UTC
@CarterLi Is this about the time period where some browsers support JSON-modules whereas others do not? And so might want to send the `.json` file to browsers that support it. In the long term this won't matter as all browsers would *eventually* support the feature if it was added, but I definitely see that having browsers use an `Accept` header would make it simpler as new formats are added as you could just give a webpack-ed module to a browser with the header `Accept: text/javascript` but provide JSON directly to a browser with `Accept: text/javascript, application/json`. While it only really benefits the transitional periods, it may still be worthwhile as more module formats (e.g. Wasm, HTML modules, etc) are in development so there's likely to be a long set of transitional periods for various module formats. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/770#issuecomment-435204367
Received on Thursday, 1 November 2018 22:11:03 UTC