I have created google single sign on by following steps mentioned in https://developers.google.com/identity/sign-in/web/sign-in
The sign in works like a charm but when
easiest way is to add ?onload=onLoad so that your api script becomes