function resolve() {
      if (cb) {
        goog.global.setTimeout(cb, 0);
        cb = null;
      }
    }
@param {!Array<string>} namespaces
@param {function(): undefined} callback Function to call once all the
    namespaces have loaded.