Skip to content

Return a cleanup callback #11

@rauchg

Description

@rauchg
let abort = loadScript('woot.js', fn);
abort();

should detach the element from the DOM, and prevent the callback from being fired (by ignoring it as a last resort).

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