Skip to content

New Blobs/scripts shouldn't be created for repeat imports #8

@philipwalton

Description

@philipwalton

As currently written, if you dynamically import the same module more than once, it'll create a new Blob URL and <script module> tag and add it to the DOM each time.

While I understand it doesn't re-download the module, it's still more work than needs to be done. Especially for modules that are frequently import()-ed.

A module map could be used to keep track of already import()-ed modules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions