How to remove webview white screen in native app?

Hi,
In my native app, there is a screen using webview. About 1~2 sec white screen appears when opening that screen. So I am just wondering if there is a way to remove it.

Thanks
Ben

Hello Ben-Tao,
Welcome to the community!
Please share a demo video describing the white screen problem clearly like which action causes the problem.
Also please share your source code here so that further analysis can be done.

Thanks.

Hi, we use following triks:

  1. initially hide webview (on start)
  2. load sync html page (simplified with head and body content part) with required background color
    How to load sync please check following examples:
    https://github.com/adobe/webkit/blob/master/Source/WebKit2/UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp
    https://github.com/adobe/webkit/blob/master/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_view.cpp
  3. on load finish - show webview
    Regards

thank you for your reply, i will investigate a bit further.

Thank You
Endüstriyel Mutfak Servisi

evas_object_color_set(ad->web_view, 0x00, 0x00, 0x00, 0xFF); // It removed white screen
evas_object_show(ad->web_view);