Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic import maps #980

Open
1 task done
yoavweiss opened this issue Aug 9, 2024 · 2 comments
Open
1 task done

Dynamic import maps #980

yoavweiss opened this issue Aug 9, 2024 · 2 comments
Assignees

Comments

@yoavweiss
Copy link

yoavweiss commented Aug 9, 2024

こんにちは TAG-さん!

I'm requesting a TAG review of Dynamic import maps.

Import maps currently have to load before any ES module and there can only be a single import map per document. That makes them fragile and potentially slow to use in real-life scenarios: Any module that loads before them breaks the entire app, and in apps with many modules the become a large blocking resource, as the entire map for all possible modules needs to load first.

This proposal is to enable multiple import maps per document, by merging them in a consistent and deterministic way.

Further details:

  • I have reviewed the TAG's Web Platform Design Principles
  • Relevant time constraints or deadlines: Hoping to ship by EoY
  • The group where the work on this specification is currently being done: HTML
  • The group where standardization of this work is intended to be done (if current group is a community group or other incubation venue): HTML
  • Major unresolved issues with or opposition to this specification: None AFAIK
  • This work is being funded by: Shopify
@LeaVerou
Copy link
Member

LeaVerou commented Aug 9, 2024

This is very exciting stuff! 😍 1

As a very initial comment, could you please add usage examples to the explainer (or a move it to actual, separate explainer) that show what design is actually being proposed? We simply don't have the bandwidth to be wading through pull request diffs to hunt this information down, and I really wouldn't want something like this to fall off our radar because of this.

Footnotes

  1. A comment to the problem being solved; I have not seen the proposed design because looking for it exceeded the time I had to allocate…

@yoavweiss
Copy link
Author

Thanks!!

I added a usage examples section to the explainer.

We simply don't have the bandwidth to be wading through pull request diffs to hunt this information down

Yup, totally understandable! Let me know if the above helps, or if you'd like me to pull the explainer to its own doc. (The current form felt more "discoverable", but happy to move it if that helps)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants