code: function() {
        // The developer may have tried to previously run gapi.load and failed.
        // Run this to fix that.
        fireauth.util.resetUnloadedGapiModules();
        var loader = /** @type {function(string, !Object)} */ (
            fireauth.util.getObjectRef('gapi.load'));
        loader('gapi.iframes', {
          'callback': resolve,
          'ontimeout': function() {
            // The above reset may be sufficient, but having this reset after
            // failure ensures that if the developer calls gapi.load after the
            // connection is re-established and before another attempt to embed
            // the iframe, it would work and would not be broken because of our
            // failed attempt.
            // Timeout when gapi.iframes.Iframe not loaded.
            fireauth.util.resetUnloadedGapiModules();
            reject(new Error('Network Error'));
          },
          'timeout': fireauth.iframeclient.IframeWrapper.NETWORK_TIMEOUT_.get()
        });
      }
docs: Function to run when gapi.load is ready.