fluttercommunity / fluttercommunity/flutter_webview_plugin

Can I inject js code before the document loads?

Open
#459 2 comments 6 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.5k
Forks
938
PR merge metrics
No merged PRs in 30d

Description

`evalJavaScript` must be run after the page has finished loading. But i want to inject javascript code before the document loads. Reference:

```swift
WKUserScript(source: sourceJs, injectionTime: .atDocumentStart, forMainFrameOnly: false)
```

so do we provide this flutter api?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.