Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1499] WebView document ready event

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T02:54:27.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsdocument, dom, evaljs, load, loaded, ready, webview
ReporterSindre Sorhus
AssigneeReggie Seagraves
Created2011-04-15T02:54:26.000+0000
Updated2017-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.

Comments

  1. Stephen Tramer 2011-04-15

    Use 'beforeload'.

  2. Balint Erdi 2011-04-28

    beforeload is not a proper substitute in most situations, notably -surprise!- DOM-related tasks can not be carried out. I would reopen this ticket.
  3. Balint Erdi 2011-04-28

    That said, I think the iOS webView does not have domready either so this can probably not be done.
  4. Lee Morris 2017-03-24

    Closing ticket as invalid with reference to the above comments.

JSON Source