TIL Chrome and Safari support dynamic creation of Import Maps in script 👀
Firefox does too but with a few hefty limitations:
- “Import maps are not allowed after a module load or preload has started” (separate non-module
<script>
) - “Multiple import maps are not allowed.” 😭