- From: Anne van Kesteren <notifications@github.com>
- Date: Wed, 28 Jun 2017 04:51:31 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 28 June 2017 11:52:05 UTC
I like the idea of importing non-JavaScript resources. Thankfully we require a MIME type for JavaScript modules so we shouldn't have trouble distinguishing the resources. I do think we probably want to define something around this as that would allow the browser to optimize parsing of these resources. If that was all delegated to a library you'd lose some of the benefits. I think the other point @rniwa made is also a good one and was unfortunately somewhat hastily dismissed. That being able to write templates inside your JavaScript is something that keeps coming up and would be really good to have a good solution for, that also avoids common XSS pitfalls and such. https://github.com/whatwg/dom/issues/150 discusses that in some more detail. -- 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/645#issuecomment-311637245
Received on Wednesday, 28 June 2017 11:52:05 UTC