views:

6

answers:

0

I have an html5 application that listens to all window.applicationCache events. When it needs to download, I write a pretty dialog to the screen, and during the progress event I calculate the percentage of files done by doing the right math on the event.loaded and event.total properties, in order to update the percentage with it.

The result is a fine dialog that says "Installing n%" up to 100. Everything works out as I expect it, and the application caches offline nicely and starts on all browsers.

However, on iPad, this doesn't seem to work. The only thing I can achieve during applicationCache events is write to the console. There I do see these events actually being listened to by my handlers.

I've tried everyting up to function timeouts.

My questions:

  1. Is there a way to update any HTML and visualize this during these events on iPad?
  2. Why is the iPad not downloading everything in one go like all other browsers do? It seems to go into idle state for a reason unknown to me.

PS: I need to cache over 600 files. The total size is under 1Mb in total.