KevinnZou / compose-webview-multiplatform

WebView for JetBrains Compose Multiplatform
https://kevinnzou.github.io/compose-webview-multiplatform/
Apache License 2.0
318 stars 40 forks source link

When the first loading response is very slow, a white screen will appear. #64

Closed robxyy closed 5 months ago

robxyy commented 5 months ago

You can try loading a slow-response URL on Android, which happens every time, such as browsing https://www.google.com in China. Ref: https://github.com/google/accompanist/issues/1442#issuecomment-1723305205, there is a way to solve this problem, as follows:

setLayerType(View.LAYER_TYPE_HARDWARE, null) or setLayerType(View.LAYER_TYPE_SOFTWARE, null)

However, there is currently no public API to set layerType, do you have plans for to provide it?

KevinnZou commented 5 months ago

@robxyy Thank you for your feedback! I have also identified the problem you mentioned and plan to address it at a later time. I appreciate the solution you provided and will implement it into the project soon.

KevinnZou commented 5 months ago

It has been fixed in version 1.7.8