cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse <purplecabb...@gmail.com>
Subject Re: [cordova-js] Order of internal cordova events and docs
Date Tue, 25 Jun 2013 23:23:55 GMT
Yes, +1, the event order needs to be formalized.
Patching the XHR loading of local plugins is hopelessly hooped without this.
... as well as any XHR calls to local files that may happen before
deviceready.





@purplecabbage
risingj.com


On Tue, Jun 25, 2013 at 4:12 PM, Benn Mapes <benn.mapes@gmail.com> wrote:

> Not sure if this is doc'ed anywhere, I looked on the wiki but I didn't see
> anything.
>
> Currently the order of events for page-load/cordova start-up is this (on
> windows phone):
> 1.) onDOMContentLoaded
> 2.) onPluginsReady
> 3.) onNativeReady
> 4.) onCordovaReady
> 5.) onCordovaInfoReady
> 6.) deviceready
>
> After digging though some old mailing lists I found this mention about the
> topic [1].
>
> For plugins on windows phone we need to patch the browser and inject some
> scripts so that the xhr will run, this is hard to do if onPluginsReady gets
> fired before onNativeReady because we have no way to ensure that the xhr is
> patched before the plugins get loaded.
>
> What do people think about documenting the order of these events firing so
> that it will be consistent across all platforms, as well as waiting for
> onNativeReady to fire before loading the plugins?
>
>
> [1]:
>
> http://callback.markmail.org/message/bziya43ztqo6oqrs?q=cordova+list:org%2Eapache%2Eincubator%2Ecallback-dev+order+channel+fire
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message