Closet For Anki [Official support]

closetPromise is defined as

closetPromise = import(`${getAnkiPrefix()}/__closet-0.5.3.js`);

which means it will resolve once the loading of the closet library finishes, not once Closet finished executing. The way to do that would be to use aftermath actions, like I mentioned once above. This also allows for things like setting the priority of these actions, so they won’t just be executed in insertion order. I’ll try to set up some documentation for this part of Closet, as it seems to be more in demand :slight_smile:

3 Likes