{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/728","repository_url":"https://api.github.com/repos/GoogleChrome/puppeteer","labels_url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/728/labels{/name}","comments_url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/728/comments","events_url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/728/events","html_url":"https://github.com/GoogleChrome/puppeteer/issues/728","id":256413352,"node_id":"MDU6SXNzdWUyNTY0MTMzNTI=","number":728,"title":"Page.setContent should wait for resources to be loaded","user":{"login":"aslushnikov","id":746130,"node_id":"MDQ6VXNlcjc0NjEzMA==","avatar_url":"https://avatars3.githubusercontent.com/u/746130?v=4","gravatar_id":"","url":"https://api.github.com/users/aslushnikov","html_url":"https://github.com/aslushnikov","followers_url":"https://api.github.com/users/aslushnikov/followers","following_url":"https://api.github.com/users/aslushnikov/following{/other_user}","gists_url":"https://api.github.com/users/aslushnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/aslushnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aslushnikov/subscriptions","organizations_url":"https://api.github.com/users/aslushnikov/orgs","repos_url":"https://api.github.com/users/aslushnikov/repos","events_url":"https://api.github.com/users/aslushnikov/events{/privacy}","received_events_url":"https://api.github.com/users/aslushnikov/received_events","type":"User","site_admin":false},"labels":[{"id":601668532,"node_id":"MDU6TGFiZWw2MDE2Njg1MzI=","url":"https://api.github.com/repos/GoogleChrome/puppeteer/labels/feature","name":"feature","color":"1d76db","default":false},{"id":601668536,"node_id":"MDU6TGFiZWw2MDE2Njg1MzY=","url":"https://api.github.com/repos/GoogleChrome/puppeteer/labels/upstream","name":"upstream","color":"dddddd","default":false}],"state":"closed","locked":false,"assignee":{"login":"aslushnikov","id":746130,"node_id":"MDQ6VXNlcjc0NjEzMA==","avatar_url":"https://avatars3.githubusercontent.com/u/746130?v=4","gravatar_id":"","url":"https://api.github.com/users/aslushnikov","html_url":"https://github.com/aslushnikov","followers_url":"https://api.github.com/users/aslushnikov/followers","following_url":"https://api.github.com/users/aslushnikov/following{/other_user}","gists_url":"https://api.github.com/users/aslushnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/aslushnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aslushnikov/subscriptions","organizations_url":"https://api.github.com/users/aslushnikov/orgs","repos_url":"https://api.github.com/users/aslushnikov/repos","events_url":"https://api.github.com/users/aslushnikov/events{/privacy}","received_events_url":"https://api.github.com/users/aslushnikov/received_events","type":"User","site_admin":false},"assignees":[{"login":"aslushnikov","id":746130,"node_id":"MDQ6VXNlcjc0NjEzMA==","avatar_url":"https://avatars3.githubusercontent.com/u/746130?v=4","gravatar_id":"","url":"https://api.github.com/users/aslushnikov","html_url":"https://github.com/aslushnikov","followers_url":"https://api.github.com/users/aslushnikov/followers","following_url":"https://api.github.com/users/aslushnikov/following{/other_user}","gists_url":"https://api.github.com/users/aslushnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/aslushnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aslushnikov/subscriptions","organizations_url":"https://api.github.com/users/aslushnikov/orgs","repos_url":"https://api.github.com/users/aslushnikov/repos","events_url":"https://api.github.com/users/aslushnikov/events{/privacy}","received_events_url":"https://api.github.com/users/aslushnikov/received_events","type":"User","site_admin":false}],"milestone":null,"comments":35,"created_at":"2017-09-09T04:18:30Z","updated_at":"2018-11-21T18:34:45Z","closed_at":"2018-11-20T23:32:47Z","author_association":"CONTRIBUTOR","body":"(as mentioned in #486 and other places)\r\n\r\nWe need a way to wait for page to load all the resources after the `page.setContent`.\r\n\r\nThe [lifecycle events](https://aslushnikov.github.io/vanilla-protocol-viewer/#Page.lifecycleEvent) might help help."},"comment":{"url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/comments/440768493","html_url":"https://github.com/GoogleChrome/puppeteer/issues/728#issuecomment-440768493","issue_url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/728","id":440768493,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDc2ODQ5Mw==","user":{"login":"aslushnikov","id":746130,"node_id":"MDQ6VXNlcjc0NjEzMA==","avatar_url":"https://avatars3.githubusercontent.com/u/746130?v=4","gravatar_id":"","url":"https://api.github.com/users/aslushnikov","html_url":"https://github.com/aslushnikov","followers_url":"https://api.github.com/users/aslushnikov/followers","following_url":"https://api.github.com/users/aslushnikov/following{/other_user}","gists_url":"https://api.github.com/users/aslushnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/aslushnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aslushnikov/subscriptions","organizations_url":"https://api.github.com/users/aslushnikov/orgs","repos_url":"https://api.github.com/users/aslushnikov/repos","events_url":"https://api.github.com/users/aslushnikov/events{/privacy}","received_events_url":"https://api.github.com/users/aslushnikov/received_events","type":"User","site_admin":false},"created_at":"2018-11-21T18:34:45Z","updated_at":"2018-11-21T18:34:45Z","author_association":"CONTRIBUTOR","body":"@kamekazemaster yeah, the paths should be resolved against the page's URL.\r\n\r\n```js\r\nawait page.goto('https://example.com');\r\n// logo.png becomes https://example.com/logo.png\r\nawait page.setContent('<img src=\"/logo.png\"></img>');"}}
{"actor":{"display_login":"aslushnikov"}}