Polymer - Don't load app until geolocation isn't set -


I am currently working on a webpad with polymorph-framework.

However, the whole application depends on the geolocation of the device. I'm setting the location in the app-global file globally, but it takes some time (about 500 mms).

My question is now, how can I tell for the polymer that he should work, after the geographical location is set?

Thank you!

I think it depends on the particular behavior you are looking for. In some cases:

  1. Any time the page loads, anything loads, maybe some app UI is also included and you have a loading icon Similar to that the app is still starting, waiting for the place.

  2. You do not want to show the app unless you have a place. You probably do not want to load app resources at this time.

  3. You do not want to load the polymer until you have the space.

There are many options & amp; They can be a bit dependent on your app architecture, but for a general structure:

  1. Show the loader icon on startup & amp; Wait until you have just set up to populate any template

  2. Possibly hide the hidden attribute on your main app element as long as the space is not available and / Do not add the element to this point until the DOM (albeit with the following warning in 3 with the same resource loading feature)

  3. You can wait to add polymers & amp; Related elements are not available unless the space is available, but generally it seems silly to do this because your app can do this task, while the user is waiting for the location.

If you get more specific then more details are required.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -