Skip to content

Preview a html with javascript type set on module. #117

Open

Description

@nodi-andy

I have following line in my html:
<script type = "module" src = "./src/main.js"></script>

the lines:
var loadJS = function (data) { if (data) { var script = document.createElement('script'); script.innerHTML = data; document.body.appendChild(script); } };

import my main.js without the type set on module. Why the type of script is ignored?

Activity

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

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