You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Avidan Chen (JIRA)" <ji...@apache.org> on 2012/04/23 17:43:35 UTC

[jira] [Created] (CB-554) White flash before showing the html page in Android

Avidan Chen created CB-554:
------------------------------

             Summary: White flash before showing the html page in Android
                 Key: CB-554
                 URL: https://issues.apache.org/jira/browse/CB-554
             Project: Apache Callback
          Issue Type: Bug
          Components: Android
    Affects Versions: 1.6.1
         Environment: Tested on Samsung Galaxy S2 running Android 2.3.5 and on Samsung Galaxy Nexus running Android 4.04.
            Reporter: Avidan Chen
            Assignee: Joe Bowser
            Priority: Minor


After upgrading from Phonegap 1.2.0, there's a noticeable white flash (maybe half a second) before displaying the first html page.

This happens only in Android as far as I can tell.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-554) White flash before showing the html page in Android

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-554:
--------------------------

    Priority: Trivial  (was: Minor)

This issue isn't noticible when we test it on the Samsung Galaxy Nexus with 4.0.2 (for some reason I don't have 4.0.4 pushed to it yet), on the Nexus S with 2.3.6 or with the Samsung Galaxy S2 with 2.3.4 (for some reason international versions are behind).  I'm going to move this bug to trivial, since it's always existed and this bug seems to be about perception more than anything else.
                
> White flash before showing the html page in Android
> ---------------------------------------------------
>
>                 Key: CB-554
>                 URL: https://issues.apache.org/jira/browse/CB-554
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.6.1
>         Environment: Tested on Samsung Galaxy S2 running Android 2.3.5 and on Samsung Galaxy Nexus running Android 4.04.
>            Reporter: Avidan Chen
>            Assignee: Joe Bowser
>            Priority: Trivial
>         Attachments: WhiteFlashDemo.zip
>
>
> After upgrading from Phonegap 1.2.0, there's a noticeable white flash (maybe half a second in Android 2.3.5, in 4.0.4 even longer than that) before displaying the first html page.
> This happens before the "deviceready" event fires. I'm also using jQuery Mobile 1.1.0.
> Again, prior to updating to 1.6.1 it didn't happen.
> This happens only in Android as far as I can tell.
> Update - might be related to this commit: https://github.com/apache/incubator-cordova-android/commit/a37d0699db783d09d6a311c6367a10255e9479e4

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-554) White flash before showing the html page in Android

Posted by "Avidan Chen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Avidan Chen updated CB-554:
---------------------------

    Attachment: WhiteFlashDemo.zip

Attached is a sample application illustrating this issue. This application reproduces the bug on Samsung Galaxy S2 (Android 2.3.5) and on Samsung Galaxy Nexus (Andriod 4.0.4).
                
> White flash before showing the html page in Android
> ---------------------------------------------------
>
>                 Key: CB-554
>                 URL: https://issues.apache.org/jira/browse/CB-554
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.6.1
>         Environment: Tested on Samsung Galaxy S2 running Android 2.3.5 and on Samsung Galaxy Nexus running Android 4.04.
>            Reporter: Avidan Chen
>            Assignee: Joe Bowser
>            Priority: Minor
>         Attachments: WhiteFlashDemo.zip
>
>
> After upgrading from Phonegap 1.2.0, there's a noticeable white flash (maybe half a second in Android 2.3.5, in 4.0.4 even longer than that) before displaying the first html page.
> This happens before the "deviceready" event fires. I'm also using jQuery Mobile 1.1.0.
> Again, prior to updating to 1.6.1 it didn't happen.
> This happens only in Android as far as I can tell.
> Update - might be related to this commit: https://github.com/apache/incubator-cordova-android/commit/a37d0699db783d09d6a311c6367a10255e9479e4

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-554) White flash before showing the html page in Android

Posted by "Avidan Chen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Avidan Chen updated CB-554:
---------------------------

    Description: 
After upgrading from Phonegap 1.2.0, there's a noticeable white flash (maybe half a second in Android 2.3.5, in 4.0.4 even longer than that) before displaying the first html page.

This happens before the "deviceready" event fires. I'm also using jQuery Mobile 1.1.0.

Again, prior to updating to 1.6.1 it didn't happen.

This happens only in Android as far as I can tell.

  was:
After upgrading from Phonegap 1.2.0, there's a noticeable white flash (maybe half a second) before displaying the first html page.

This happens only in Android as far as I can tell.

    
> White flash before showing the html page in Android
> ---------------------------------------------------
>
>                 Key: CB-554
>                 URL: https://issues.apache.org/jira/browse/CB-554
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.6.1
>         Environment: Tested on Samsung Galaxy S2 running Android 2.3.5 and on Samsung Galaxy Nexus running Android 4.04.
>            Reporter: Avidan Chen
>            Assignee: Joe Bowser
>            Priority: Minor
>
> After upgrading from Phonegap 1.2.0, there's a noticeable white flash (maybe half a second in Android 2.3.5, in 4.0.4 even longer than that) before displaying the first html page.
> This happens before the "deviceready" event fires. I'm also using jQuery Mobile 1.1.0.
> Again, prior to updating to 1.6.1 it didn't happen.
> This happens only in Android as far as I can tell.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-554) White flash before showing the html page in Android

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259737#comment-13259737 ] 

Joe Bowser commented on CB-554:
-------------------------------

That "white flash" has always been there, if it appears longer now, it's because there's an issue with the execution of your Javascript.  Can you post a sample of this bug so that we can figure out where things are slowing down for you?

Also, you may be able to mitigate this with a splashscreen.
                
> White flash before showing the html page in Android
> ---------------------------------------------------
>
>                 Key: CB-554
>                 URL: https://issues.apache.org/jira/browse/CB-554
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.6.1
>         Environment: Tested on Samsung Galaxy S2 running Android 2.3.5 and on Samsung Galaxy Nexus running Android 4.04.
>            Reporter: Avidan Chen
>            Assignee: Joe Bowser
>            Priority: Minor
>
> After upgrading from Phonegap 1.2.0, there's a noticeable white flash (maybe half a second in Android 2.3.5, in 4.0.4 even longer than that) before displaying the first html page.
> This happens before the "deviceready" event fires. I'm also using jQuery Mobile 1.1.0.
> Again, prior to updating to 1.6.1 it didn't happen.
> This happens only in Android as far as I can tell.
> Update - might be related to this commit: https://github.com/apache/incubator-cordova-android/commit/a37d0699db783d09d6a311c6367a10255e9479e4

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CB-554) White flash before showing the html page in Android

Posted by "Avidan Chen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260587#comment-13260587 ] 

Avidan Chen edited comment on CB-554 at 4/24/12 2:12 PM:
---------------------------------------------------------

Attached is a sample application illustrating this issue. This application reproduces the bug on Samsung Galaxy S2 (Android 2.3.5) and on Samsung Galaxy Nexus (Andriod 4.0.4).
Note that the white flash does not occur every time.
                
      was (Author: avidanchen):
    Attached is a sample application illustrating this issue. This application reproduces the bug on Samsung Galaxy S2 (Android 2.3.5) and on Samsung Galaxy Nexus (Andriod 4.0.4).
                  
> White flash before showing the html page in Android
> ---------------------------------------------------
>
>                 Key: CB-554
>                 URL: https://issues.apache.org/jira/browse/CB-554
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.6.1
>         Environment: Tested on Samsung Galaxy S2 running Android 2.3.5 and on Samsung Galaxy Nexus running Android 4.04.
>            Reporter: Avidan Chen
>            Assignee: Joe Bowser
>            Priority: Minor
>         Attachments: WhiteFlashDemo.zip
>
>
> After upgrading from Phonegap 1.2.0, there's a noticeable white flash (maybe half a second in Android 2.3.5, in 4.0.4 even longer than that) before displaying the first html page.
> This happens before the "deviceready" event fires. I'm also using jQuery Mobile 1.1.0.
> Again, prior to updating to 1.6.1 it didn't happen.
> This happens only in Android as far as I can tell.
> Update - might be related to this commit: https://github.com/apache/incubator-cordova-android/commit/a37d0699db783d09d6a311c6367a10255e9479e4

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-554) White flash before showing the html page in Android

Posted by "Lindsey Simon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260042#comment-13260042 ] 

Lindsey Simon commented on CB-554:
----------------------------------

I notice this as well, fwiw.
The white is, I believe, the body background color initially before anything happens.
                
> White flash before showing the html page in Android
> ---------------------------------------------------
>
>                 Key: CB-554
>                 URL: https://issues.apache.org/jira/browse/CB-554
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.6.1
>         Environment: Tested on Samsung Galaxy S2 running Android 2.3.5 and on Samsung Galaxy Nexus running Android 4.04.
>            Reporter: Avidan Chen
>            Assignee: Joe Bowser
>            Priority: Minor
>
> After upgrading from Phonegap 1.2.0, there's a noticeable white flash (maybe half a second in Android 2.3.5, in 4.0.4 even longer than that) before displaying the first html page.
> This happens before the "deviceready" event fires. I'm also using jQuery Mobile 1.1.0.
> Again, prior to updating to 1.6.1 it didn't happen.
> This happens only in Android as far as I can tell.
> Update - might be related to this commit: https://github.com/apache/incubator-cordova-android/commit/a37d0699db783d09d6a311c6367a10255e9479e4

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-554) White flash before showing the html page in Android

Posted by "Avidan Chen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Avidan Chen updated CB-554:
---------------------------

    Description: 
After upgrading from Phonegap 1.2.0, there's a noticeable white flash (maybe half a second in Android 2.3.5, in 4.0.4 even longer than that) before displaying the first html page.

This happens before the "deviceready" event fires. I'm also using jQuery Mobile 1.1.0.

Again, prior to updating to 1.6.1 it didn't happen.

This happens only in Android as far as I can tell.

Update - might be related to this commit: https://github.com/apache/incubator-cordova-android/commit/a37d0699db783d09d6a311c6367a10255e9479e4

  was:
After upgrading from Phonegap 1.2.0, there's a noticeable white flash (maybe half a second in Android 2.3.5, in 4.0.4 even longer than that) before displaying the first html page.

This happens before the "deviceready" event fires. I'm also using jQuery Mobile 1.1.0.

Again, prior to updating to 1.6.1 it didn't happen.

This happens only in Android as far as I can tell.

    
> White flash before showing the html page in Android
> ---------------------------------------------------
>
>                 Key: CB-554
>                 URL: https://issues.apache.org/jira/browse/CB-554
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.6.1
>         Environment: Tested on Samsung Galaxy S2 running Android 2.3.5 and on Samsung Galaxy Nexus running Android 4.04.
>            Reporter: Avidan Chen
>            Assignee: Joe Bowser
>            Priority: Minor
>
> After upgrading from Phonegap 1.2.0, there's a noticeable white flash (maybe half a second in Android 2.3.5, in 4.0.4 even longer than that) before displaying the first html page.
> This happens before the "deviceready" event fires. I'm also using jQuery Mobile 1.1.0.
> Again, prior to updating to 1.6.1 it didn't happen.
> This happens only in Android as far as I can tell.
> Update - might be related to this commit: https://github.com/apache/incubator-cordova-android/commit/a37d0699db783d09d6a311c6367a10255e9479e4

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-554) White flash before showing the html page in Android

Posted by "Avidan Chen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259952#comment-13259952 ] 

Avidan Chen commented on CB-554:
--------------------------------

Well, it wasn't there when I was running 1.2.0. And nothing in my code changed. I simply upgraded to 1.6.1. I also upgraded jQuery mobile to 1.1.0, but I did that prior to upgrading phonegap and I thoroughly tested it without any issues. Only after updating phonegap it started happening.

By the way, I didn't use a splashscreen in 1.2.0. nor do I use it now because I need the ability to hide it after I'm done caching pages (as far as I could tell, hiding the splash screen on demand in javascript only works in iOS). Instead, the background image of my first html page serves as the splash screen, and when I'm done caching I just switch to the next page. 
Now, I did try to use a splashscreen in 1.6.1 just to see if it helps, but there was no change. 

After further investigating this issue, I noticed it happens even before deviceready fires. What's wierd about it is that it doesn't happen all the time. Most of the times I start the app, but not every time.
                
> White flash before showing the html page in Android
> ---------------------------------------------------
>
>                 Key: CB-554
>                 URL: https://issues.apache.org/jira/browse/CB-554
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.6.1
>         Environment: Tested on Samsung Galaxy S2 running Android 2.3.5 and on Samsung Galaxy Nexus running Android 4.04.
>            Reporter: Avidan Chen
>            Assignee: Joe Bowser
>            Priority: Minor
>
> After upgrading from Phonegap 1.2.0, there's a noticeable white flash (maybe half a second in Android 2.3.5, in 4.0.4 even longer than that) before displaying the first html page.
> This happens before the "deviceready" event fires. I'm also using jQuery Mobile 1.1.0.
> Again, prior to updating to 1.6.1 it didn't happen.
> This happens only in Android as far as I can tell.
> Update - might be related to this commit: https://github.com/apache/incubator-cordova-android/commit/a37d0699db783d09d6a311c6367a10255e9479e4

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-554) White flash before showing the html page in Android

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260050#comment-13260050 ] 

Joe Bowser commented on CB-554:
-------------------------------

@Lindsey This is the colour of the WebView before anything loads, not the background which defaults to black.  This is most likely caused by a JS issue, which is why I would like an example so that we can look into this further.  Without code, we can just say that the JS execution is slow.

Do you have an example that we can look at?
                
> White flash before showing the html page in Android
> ---------------------------------------------------
>
>                 Key: CB-554
>                 URL: https://issues.apache.org/jira/browse/CB-554
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.6.1
>         Environment: Tested on Samsung Galaxy S2 running Android 2.3.5 and on Samsung Galaxy Nexus running Android 4.04.
>            Reporter: Avidan Chen
>            Assignee: Joe Bowser
>            Priority: Minor
>
> After upgrading from Phonegap 1.2.0, there's a noticeable white flash (maybe half a second in Android 2.3.5, in 4.0.4 even longer than that) before displaying the first html page.
> This happens before the "deviceready" event fires. I'm also using jQuery Mobile 1.1.0.
> Again, prior to updating to 1.6.1 it didn't happen.
> This happens only in Android as far as I can tell.
> Update - might be related to this commit: https://github.com/apache/incubator-cordova-android/commit/a37d0699db783d09d6a311c6367a10255e9479e4

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-554) White flash before showing the html page in Android

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser resolved CB-554.
---------------------------

    Resolution: Won't Fix

We already have work-arounds for this issue, including splashscreens.  If people are seeing a white flash, their Javascript performance may need to be looked at as well.
                
> White flash before showing the html page in Android
> ---------------------------------------------------
>
>                 Key: CB-554
>                 URL: https://issues.apache.org/jira/browse/CB-554
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.6.1
>         Environment: Tested on Samsung Galaxy S2 running Android 2.3.5 and on Samsung Galaxy Nexus running Android 4.04.
>            Reporter: Avidan Chen
>            Assignee: Joe Bowser
>            Priority: Trivial
>         Attachments: WhiteFlashDemo.zip
>
>
> After upgrading from Phonegap 1.2.0, there's a noticeable white flash (maybe half a second in Android 2.3.5, in 4.0.4 even longer than that) before displaying the first html page.
> This happens before the "deviceready" event fires. I'm also using jQuery Mobile 1.1.0.
> Again, prior to updating to 1.6.1 it didn't happen.
> This happens only in Android as far as I can tell.
> Update - might be related to this commit: https://github.com/apache/incubator-cordova-android/commit/a37d0699db783d09d6a311c6367a10255e9479e4

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira