Skip to content

Return a cleanup callback #11

Open
@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).

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