How can I add some javascript which only loads the google maps api:
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
when my app is online (navigator.onLine == true)?
How can I add some javascript which only loads the google maps api:
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
when my app is online (navigator.onLine == true)?
Copyright © 2021 Jogjafile Inc.
Use dynamic script insertion:
See the Asynchronous Loading topic in the Google Maps API v3 Documentation.
You might also be interested in Google Maps API v3: Developing for Mobile Devices