Skip to content

Add script type="module" support #84

@TomStrepsil

Description

@TomStrepsil

https://developers.google.com/web/fundamentals/primers/modules

Accept args.module = true for a particular script to add type="module". It would be up to consumers to do a feature detect:

'noModule' in document.createElement('script')

...to decide which script to request in loadJs, but using the same identifier for both that and a traditional script.

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