Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8466769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:26:25+00:00 2026-06-10T15:26:25+00:00

I am creating a phonegap app which uses google maps to show directions and

  • 0

I am creating a phonegap app which uses google maps to show directions and user location. I have used the default google api by adding

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>

I have observed this causes the app initialization to slow down, and sometimes even crash if connectivity is slow on the mobile device. I understand that the app will not start unless all the scripts are loaded.

I tried downloading the JavaScript from the url http://maps.google.com/maps/api/js?sensor=false and storing locally, but that makes the map loading fail at times.

Is there an equivalent script which can be stored in the app itself? or can we delay the loading of script after the app is loaded?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:26:26+00:00Added an answer on June 10, 2026 at 3:26 pm

    You can load the API asynchronously, as it is done on this example. Like that you can decide, within your javascript, when to load it, (call to loadScript()), and initialize the map after that.

    Note that the example uses a callback parameter, which is the name of a function to call when loading of the API is complete.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm planning on creating an app which will utilise Phonegap, however the app is
I have used Android phonegap application for creating dynamic list with label and corresponding
I'm creating a simple app with jquerymobile build with phonegap which is using iframe
I'm creating a Phonegap/Cordova app and have a query about dates in SQLLite. In
I'm working on a mobile app with Phonegap which will use Geolocation. I used
I am creating a PhoneGap app. I have to set focus on a textarea
When creating a jquery mobile / phonegap app, is it ok to pass variables
I am creating an app using jQuery Mobile and PhoneGap. I delegate a button
I am creating a quiz style app for iOS using phonegap. The app allows
I have stepped through both tutorials that I could find for creating phonegap plugins:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.