{"action":"closed","issue":{"url":"https://api.github.com/repos/kennethreitz/requests-html/issues/89","repository_url":"https://api.github.com/repos/kennethreitz/requests-html","labels_url":"https://api.github.com/repos/kennethreitz/requests-html/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/requests-html/issues/89/comments","events_url":"https://api.github.com/repos/kennethreitz/requests-html/issues/89/events","html_url":"https://github.com/kennethreitz/requests-html/issues/89","id":302046136,"number":89,"title":"Allow waitFor* actions when rendering. ","user":{"login":"mjpieters","id":46775,"avatar_url":"https://avatars3.githubusercontent.com/u/46775?v=4","gravatar_id":"","url":"https://api.github.com/users/mjpieters","html_url":"https://github.com/mjpieters","followers_url":"https://api.github.com/users/mjpieters/followers","following_url":"https://api.github.com/users/mjpieters/following{/other_user}","gists_url":"https://api.github.com/users/mjpieters/gists{/gist_id}","starred_url":"https://api.github.com/users/mjpieters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjpieters/subscriptions","organizations_url":"https://api.github.com/users/mjpieters/orgs","repos_url":"https://api.github.com/users/mjpieters/repos","events_url":"https://api.github.com/users/mjpieters/events{/privacy}","received_events_url":"https://api.github.com/users/mjpieters/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-04T00:48:29Z","updated_at":"2018-03-05T21:09:49Z","closed_at":"2018-03-05T21:09:49Z","author_association":"NONE","body":"When rendering a page, you sometimes need to wait for AJAX requests to complete. While using a sleep time can help, that method will easily fail if the network is slow or congested. Either expose the Pyppeteer page object or allow the caller to specify some `waitFor*` configuration. \r\n\r\nFor example,  [`waitForNavigation()`](https://miyakogi.github.io/pyppeteer/reference.html#pyppeteer.page.Page.waitForNavigation) lets you specify a specific event to wait for, like [`networkidle0`](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagewaitfornavigationoptions), which usually indicates all network-dependent JS code is done. "}}
{"actor":{"display_login":"kennethreitz"}}