Board Thread:Support Requests - Getting Technical/@comment-3359255-20160901185253/@comment-28822533-20160901195019

KockaAdmiralac wrote: @Annabeth Obviously, because other plugins work.

@Ozu At some point I had an issue with MassCategorization. My console was saying mw.Api isn't defined. It's probably because the code wasn't wrapped in  (or   or , whichever you prefer)

Apparently Wikia has an utterly stupid bug where, even on methods that execute on document loading, mw.Api isn't defined, so could adding a setInterval/clearInterval to the code help?

Ah yes, that explains it. I'm aware of the  bug. Sometimes it never loads (in my experience), so using a loader with setInterval might not work with this. Bear in mind if you did implement that it would have to be mass-rolled out to Dev Wiki scripts that use  so it's probably not an option right now.