breautek commented on issue #1250:
URL: https://github.com/apache/cordova-ios/issues/1250#issuecomment-1230338948

   > Cordova onWebViewPageDidLoad delay from remote src
   
   Is your entire application hosted remotely, or does your app just depend on 
sources loading remotely? If the latter, you could try to `async` loading or 
ensure that the `cordova.js` is loaded first. Remembering that JS is single 
threaded and without the `async` attribute it will pause when it needs to 
download a script source. If the connection to the remote source is slow/weak, 
your app is blocked until it either completes or errors out. The [async 
attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-async)
 allows the script source to download in the background and only parse/execute 
it later when it's available.
   
   If the former, it's not really a supported configuration because it breaks 
[Section 4.7 / 4.7.1](Cordova onWebViewPageDidLoad delay from remote src) of 
the Apple App Store policies. Ability to load in your app should be reserved 
for development use or at least for apps that do not require the use of native 
APIs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to