Skip to content

Deferred scripts are not handled correctly #14

@ading2210

Description

@ading2210

Script tags such as <script src="main.js" defer></script> will not work correctly, since when they are inlined they are executed immediately in the document's head. This breaks existing code because deferred scripts assume the entire DOM has already loaded. I suspect scripts with the async tag would also break in a similar way, but I have not verified this.

A possible fix would be moving deferred script tags to the end of the page.

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