I'm trying to integrate the new Google sign in button via HTML ( https://developers.google.com/identity/gsi/web/guides/display-button#button_rendering ) into an SPA.
The <div>s with the app details and the one containing the button itself (g_id_onload, g_id_signin) are only mounted to the DOM in certain views.
The button renders with 0 height (see picture) if mounted after the first page render.

Am I doing something wrong here? The Google guide doesn't mention anything about the dynamic rendering case.
Is there a way around this?