load-script icon indicating copy to clipboard operation
load-script copied to clipboard

Return a cleanup callback

Open rauchg opened this issue 10 years ago • 2 comments

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

rauchg avatar May 08 '15 00:05 rauchg

Is this a new feature request or a change in behavior? Guessing we don't return anything today.

defunctzombie avatar Aug 27 '15 21:08 defunctzombie

Done?

akinnee avatar Jul 10 '22 21:07 akinnee