cordova - ionic calling phonegap website -


so, have app developed ionic, found loads fast when testing in us. have users china reported loads slow , stuck on splash page. @ first, thought server issue, after switched chinese server, behaves same. realized because of deviceready fired slow in china, suspecting when ionic/phonegap runs, connect phonegap website, slow in china.

i have cordova.js in index.html

<!-- cordova script (this 404 during development) -->     <script src="lib/ngcordova/dist/ng-cordova.js"></script>     <script src="cordova.js"></script> 

after run ionic build ios, has cordova.js under platforms/ios, doest not have cordova.js under root folder

so, want understand how deviceready works, connect phonegap website? if so, how can disable it? should put cordova.js.

thanks

if don't explicitly specify internet address, cordova takes locally.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -