[
https://issues.apache.org/jira/browse/CB-11469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jcesarmobile closed CB-11469.
-----------------------------
Resolution: Won't Fix
Closing as won't fix since the wkwebview-engine plugin is deprecated, but the
problem probably still affects cordova-ios
If still present, it can be reported on github
https://github.com/apache/cordova-ios/issues
> Race conditions when loading scripts async
> ------------------------------------------
>
> Key: CB-11469
> URL: https://issues.apache.org/jira/browse/CB-11469
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-plugin-wkwebview-engine
> Reporter: Philipp Kursawe
> Assignee: Shazron Abdullah
> Priority: Major
> Labels: wkwebview-baked-in, wkwebview-known-issues
>
> Using this code in `index.html`
> {code}
> <script src="cordova.js" async/>
> <script src="bundle.js" async/>
> {code}
> causes all kind of weird side effects due to race conditions, I assume.
> As soon as I removed the async attribute (after one week of trying other
> things) everything worked, including the splashscreen. I think the
> splashscreen uses the message queue (event loop) to postpone some of its
> actions (when fading out) and this collides with the `async` attribute and
> creates a race-condition. It seems like a bug in wkwebview to not handle
> `async` script loading properly.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]