- From: Domenic Denicola <notifications@github.com>
- Date: Wed, 20 Jul 2022 22:14:08 -0700
- To: w3ctag/design-reviews <design-reviews@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 21 July 2022 05:14:21 UTC
Right now import maps are always inline and cannot be loaded. It's unclear whether that will change in the future; implementer interest is low, although I personally think it'd be nice. In such a future, it would return the current value. It would not throw. It's not clear whether the current value would be considered "wrong"; if you do `import.meta.resolve(x); import(x);` while an import map is being loaded, the `import()` statement will import the same URL returned by `import.meta.resolve(x)` (i.e., the current value). If an author needs to wait for import maps in such a future, it depends on how we expose external import map loading, but probably the simplest way would be to wait for that import map `<script>` element's `load` event. -- Reply to this email directly or view it on GitHub: https://github.com/w3ctag/design-reviews/issues/746#issuecomment-1191047276 You are receiving this because you are subscribed to this thread. Message ID: <w3ctag/design-reviews/issues/746/1191047276@github.com>
Received on Thursday, 21 July 2022 05:14:21 UTC