cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-11469) Race conditions when loading scripts async
Date Wed, 22 Jun 2016 09:32:58 GMT


ASF GitHub Bot commented on CB-11469:

Github user pke commented on the issue:
    @shazron sure: 
    I guess its historical reasons why issues are not tracked directly here in GH?

> Race conditions when loading scripts async
> ------------------------------------------
>                 Key: CB-11469
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin WKWebViewEngine
>            Reporter: Philipp Kursawe
>            Assignee: Shazron Abdullah
> 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message