You are using both HTML and JavaScript Sign in with Google SDK. You only need to use either one. I am guessing that is why you see the blinking issue.