I am working on updating a Google Sign-In component. The Google doc says to include the following in my html file:
<script src="https://accounts.google.com/gsi/client" async defer></script>
Here is the doc Google Doc.
My understanding of the async
and defer
attributes is that they load the script in a different order, and therefor can not both be applied at once. Here is a SO article for reference SO article.
So am I misunderstanding something or why is the Google Document telling me to use both tags?