apc-io / apc-firefox-os

Firefox OS on APC
94 stars 28 forks source link

Dialog (A script on this page may be busy,...) is stuck #34

Open taboca opened 10 years ago

taboca commented 10 years ago

I would like very much to help with the following issue:

When JS is slow (use case is open Google Analytics Real Time and leave for 1-2 hours or more) a "JS is busy dialog" shows up. I think that this is an area that we can improve this custom version of the Firefox OS. The major issues/observation:

My proposal, on how to tackle this and add value to APC and custom Firefox OS versions:

1) We find the place in Firefox OS or Gaia code that manages this dialog. 2) We propose patch for initial solution (or workaround) and to see if this is on Firefox OS code, Gaia, or if it is in APC.

And I would like to use this, and possible initial fix, to propose a further research or investigation if we need to have these kind of screens under a more managed scenarios. One use case I can think of is for TV appliances or other scenarios where a direct user touch experience is not in place. For these cases, and perhaps also in some other real-time cases, we could improve user experience by having these events to be managed (for example, like the concept of intents). So by having this kind of events going through a certain channel of control, we could improve in many ways:

ntlc commented 10 years ago

@taboca Thank you for the proposal. Can you explain why this should be applied only to custom FF? I'd advise to propose this directly to Mozilla. The JS is busy issue happens even with FF browser in different OSes, it would be FF related IMO.

However, if you prefer to start with APC before tackling a more general approach, pls feel free to submit patches here, or to a separate branch, our team will perform review and merge. Thanks.