-
@lorenschmidt the big thing, once you fully commit to it, is having the replace file function return a promise (because presumably it's doing aync-y stuff internally). and you don't need to declare the promise variable, you can just chain it.
-
@lorenschmidt oh, wait, it's returning a DOM element, and triggering off the onload, never mind