Skip to content

Render <script src> elements only once #44

@yawaramin

Description

@yawaramin

We can keep track of <script> tags inside a node tree with the same src and make sure to output/render them only once.

This would make it easy to define self-contained components that rely on JS at runtime. We could reuse the same component multiple times in the same page and ensure that their JS would only be executed once.

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