I'd like the inject javascript into the WebView as soon as the HTML is loaded and the DOM is ready, so not waiting for the all assets.
I know about onPageFinished, but it is called when everything is loaded. I'd like a callback sooner when the DOM is ready.
You can set a JS lisntener interface on the WebView, and call it in
onloadin your HTMLHere's an example
EDIT
Since you mentioned you cannot modify the HTML, try this: