{ "id": "62131", "key": "TIMOB-1499", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:54:27.000+0000", "created": "2011-04-15T02:54:26.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "document", "dom", "evaljs", "load", "loaded", "ready", "webview" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:18:56.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

WebView should have an event that fires when the DOM is\nloaded.

\n

Right now, we have 'load', but it only fires when everything has\nloaded, including images.

\n

My situation:
\nI'm loading a page I have no control over. I use some JS with\nevalJS to style the page. The problem is that the styling only\nappear after all the images has loaded.

{html}", "attachment": [], "flagged": false, "summary": "WebView document ready event", "creator": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "subtasks": [], "reporter": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "environment": null, "comment": { "comments": [ { "id": "125857", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Use 'beforeload'.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:54:27.000+0000", "updated": "2011-04-15T02:54:27.000+0000" }, { "id": "132919", "author": { "name": "balint.erdi", "key": "balint.erdi", "displayName": "Balint Erdi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "beforeload is not a proper substitute in most situations, notably -surprise!- DOM-related tasks can not be carried out. I would reopen this ticket.", "updateAuthor": { "name": "balint.erdi", "key": "balint.erdi", "displayName": "Balint Erdi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-28T12:04:54.000+0000", "updated": "2011-04-28T12:04:54.000+0000" }, { "id": "132920", "author": { "name": "balint.erdi", "key": "balint.erdi", "displayName": "Balint Erdi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "That said, I think the iOS webView does not have domready either so this can probably not be done.", "updateAuthor": { "name": "balint.erdi", "key": "balint.erdi", "displayName": "Balint Erdi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-28T12:05:58.000+0000", "updated": "2011-04-28T12:05:58.000+0000" }, { "id": "415662", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:18:56.000+0000", "updated": "2017-03-24T18:18:56.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }