title: Google+ Sign-In custom button and call
body: <p>I am using google sign in API to get user info.
  My java script code is:</p>
  
  <pre><code>&lt;script src="https://apis.google.com/js/client:plusone.js?onload=signinCallback"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  var email = "";
  var Id = "";
  function signinCallback(authResult) {
  
      if (authResult['status']['signed_in'] &amp;&amp; authResult['status']['method'] == 'PROMPT') {
          // Update the app to reflect a signed in user
          // Hide the sign-in button now that the user is authorized, for example:
          document.getElementById('signinButton').setAttribute('style',
                  'display: none');
          gapi.client.load('plus', 'v1', function() {
  
              var request = gapi.client.plus.people.get({
                  'userId' : 'me'
              });
              request.execute(function(resp) {
                  if (resp['emails']) {
                      for (var i = 0; i &lt; resp['emails'].length; i++) {
                          if (resp['emails'][i]['type'] == 'account') {
                              email = resp['emails'][i]['value'];
                          }
                      }
                  }
                  Id = resp.id;
              });
          });
      } else {
          // Update the app to reflect a signed out user
          // Possible error values:
          //   "user_signed_out" - User is signed-out
          //   "access_denied" - User denied access to your app
          //   "immediate_failed" - Could not automatically log in the user
          console.log('Sign-in state: ' + authResult['error']);
      }
  }
      &lt;/script&gt;
  </code></pre>
  
  <p>And my html code is:</p>
  
  <pre><code>&lt;span id="signinButton"&gt; &lt;span class="g-signin" data-callback="signinCallback" data-            clientid="****************************.apps.googleusercontent.com"
                  data-cookiepolicy="single_host_origin" data-scope="https://www.googleapis.com/auth/userinfo.email"&gt; &lt;/span&gt;
  </code></pre>
  
  <p>My problem is it's take long time to load for google sign in button so i want to change custom button
  I want solution for that problem.
  Thanks..</p>