Android WebView + loadUrl with javascript + onPageFinished = lag

前端 未结 2 755
情话喂你
情话喂你 2021-01-02 16:57

I have WebView which loads some page, when it\'s finished I apply some javascript magic to mess up with DOM. Everything is fine, page loads and onPageFinished I

2条回答
  •  悲&欢浪女
    2021-01-02 17:24

    Ok, I think I figured it out. We can have callback from the end of javascript that will fire "show view" - like here or here (with handler, because I wanted to update ui). But it wont change anything, the problem seems to be in rendering speed. It's just slow. So for now I'll just stick with 1 second delay after firing JS.

提交回复
热议问题