fluttercommunity / fluttercommunity/flutter_webview_plugin
WebView flashes when altering page using Javascript
- Lingua principale
- Java
- Stelle
- 1.5k
- Fork
- 938
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I have the following code that removes some bloat from my reading app.
```
await handlePreferences().then((s) async {
await _fwp.evalJavascript(pageCleaner).then((s) async {
await _fwp.show();
});
});
```
However, the webview flashes when it's shown, and you can see the bloated page for a second before being replaced. Is there a way to fix this?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start with the reported sequence of handlePreferences, evalJavascript(pageCleaner), and _fwp.show(), then trace how the WebView is displayed during page loading and JavaScript evaluation. Determine why the uncleaned page becomes visible first; done means the WebView no longer flashes the bloated page before cleanup is applied.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- dart, flutter, javascript
- Ambito
- mobile
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100