Caching the import map #17

Open
opened 2024-09-12 22:40:49 +02:00 by liquidex · 0 comments
Owner

Browsers make this kinda hard because <script type="importmap"> currently does not support the src="" attribute.

  • I wonder if it’s possible to add an import map into the document dynamically. all my attempts so far have failed.

  • an alternative to this would be to avoid the import map and instead recompile JS to add query params to import statements, but that’s a piece of complexity I’d like to avoid. I like the simplicity of import maps.

Browsers make this kinda hard because `<script type="importmap">` currently does not support the `src=""` attribute. - I wonder if it’s possible to add an import map into the document dynamically. all my attempts so far have failed. - an alternative to this would be to avoid the import map and instead recompile JS to add query params to import statements, but that’s a piece of complexity I’d like to avoid. I like the simplicity of import maps.
liquidex added the
perf
label 2024-09-12 22:51:44 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: liquidex/treehouse#17
No description provided.