Accompanist webview lags when showing a website. I...
# compose-android
c
Accompanist webview lags when showing a website. Is there some way to make it async? https://google.github.io/accompanist/web/
e
what lags?
also it's just a thin wrapper around platform WebView so I find it unlikely that accompanist is responsible… if you have an example that you can plug into both accompanist web and a traditional view-based webview, are there differences?
j
@Colton Idle is it only lagging on its first load for the life of the app process? If you go back to a different screen in your app and then open the screen with the WebView again, is the second time faster?
c
i swear i didnt do anything except for update some deps (compose + accompanist) and now those loading issues are gone.
¯\_(ツ)_/¯
you know whats interesting. i wonder if updating compose to latest with all of the modifier improvements was the thing that improved webview perf. 🤔
e
I would find it more likely that a update to or experiment flag in system webview has caused a change in (pre)loading behavior