react-google-places-autocomplete
react-google-places-autocomplete copied to clipboard
Getting warning regarding "Google Maps JavaScript API has been loaded directly without loading=async. This can result in suboptimal performance. For best-practice loading patterns please see https://goo.gle/js-api-loading
Google Maps JavaScript API has been loaded directly without loading=async. This can result in suboptimal performance. For best-practice loading patterns please see https://goo.gle/js-api-loading.. Getting the same warning again and again ... After changed at Script level also .. Here is my Script tag " .. So any one please guide me
@sadanandapradhan Add the async script attribute and loading=async into the src value as noted in the docs:
<script async
src="https://maps.googleapis.com/maps/api/js?key=&loading=async&libraries=places&callback=initMap">
</script>
Thank You @lightstrike its working properly