Uncaught ReferenceError: google is not defined when trying to use Google Places API without a map

From my reading, async and defer aren’t meant to be used at the same time. While your <script> that loads the API from google is deferred, your <script> with your code is not deferred. (If you remove async and defer your code works, but is theoretically slower.) If you defer your code execution until the document is loaded (and the google api instantiated), then your code should … Read more

tech