This started on dev-gaia: http://groups.google.com/group/mozilla.dev.gaia/browse_thread/thread/a0faa6512f71bc94
Summary: As apps use more async/defer-loaded JS and more async APIs for final construction, the platform cannot accurately detect when the app has finished loading and is in a usable state. Ideally the app could signal to the platform when it considers itself loaded. This would give the following immediate benefits: * better transitions from app screenshots to running app (avoiding "its a web page" white flash during initial load) * better indication when a screenshot could be taken, without it happening during the time the app needs to finish the load. * better tracking of how long apps actually take to load to be usable. Would it be possible for the platform to support a way for the app to signal that is has finished loading? Perhaps a 'mozappload' (or some moz-prefixed) event that can be created via new CustomEvent by the app JS code and dispatched on window, and the platform would allow mozbrowser elements to surface this event, so that the gaia system could listen for it, as it can for the other mozbrowser events: https://developer.mozilla.org/en-US/docs/WebAPI/Browser#Events James _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
