Manually load mw.api() only if we're not using the gadget