[TIMOB-1499] WebView document ready event
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Trivial |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2011-04-15T02:54:27.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | document, dom, evaljs, load, loaded, ready, webview |
| Reporter | Sindre Sorhus |
| Assignee | Reggie Seagraves |
| Created | 2011-04-15T02:54:26.000+0000 |
| Updated | 2017-03-24T18:18:56.000+0000 |
Description
WebView should have an event that fires when the DOM is loaded.
Right now, we have 'load', but it only fires when everything has loaded, including images.
My situation:
I'm loading a page I have no control over. I use some JS with
evalJS to style the page. The problem is that the styling only
appear after all the images has loaded.
Use 'beforeload'.
beforeload is not a proper substitute in most situations, notably -surprise!- DOM-related tasks can not be carried out. I would reopen this ticket.
That said, I think the iOS webView does not have domready either so this can probably not be done.
Closing ticket as invalid with reference to the above comments.