{"action":"created","issue":{"url":"https://api.github.com/repos/assaf/zombie/issues/986","labels_url":"https://api.github.com/repos/assaf/zombie/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/assaf/zombie/issues/986/comments","events_url":"https://api.github.com/repos/assaf/zombie/issues/986/events","html_url":"https://github.com/assaf/zombie/issues/986","id":121467724,"number":986,"title":"How to find a finite resource ?","user":{"login":"sintanial","id":3396709,"avatar_url":"https://avatars.githubusercontent.com/u/3396709?v=3","gravatar_id":"","url":"https://api.github.com/users/sintanial","html_url":"https://github.com/sintanial","followers_url":"https://api.github.com/users/sintanial/followers","following_url":"https://api.github.com/users/sintanial/following{/other_user}","gists_url":"https://api.github.com/users/sintanial/gists{/gist_id}","starred_url":"https://api.github.com/users/sintanial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sintanial/subscriptions","organizations_url":"https://api.github.com/users/sintanial/orgs","repos_url":"https://api.github.com/users/sintanial/repos","events_url":"https://api.github.com/users/sintanial/events{/privacy}","received_events_url":"https://api.github.com/users/sintanial/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-12-10T11:56:27Z","updated_at":"2015-12-10T15:08:35Z","closed_at":null,"body":"I have very simple code:\r\n```javascript\r\nconst Browser = require('zombie');\r\nconst browser = new Browser();\r\n\r\nbrowser.userAgent = \"Mozilla/5.0 (Linux; U; Android 4.0.2; en-us; Galaxy Nexus Build/ICL53F) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30\";\r\nbrowser.visit('http://file-storage.mobi/iYFb7Wsc', function () {\r\n    console.log(\"LOADEDDDD !!!!\", browser.location.href)\r\n});\r\n```\r\n\r\nwhen i run this code with zombie@4.2.1 with DEBUG env, i have this log:\r\n\r\nIn log i describe my problem.\r\n```\r\nzombie Opened window http://file-storage.mobi/iYFb7Wsc  +0ms\r\n  zombie GET http://file-storage.mobi/iYFb7Wsc => 302 http://aino5.completesecurecarrier.com/?KW={KW}&s1={s1}&s2={s2}&s3={s3}&s4={s4}&s5={s5} +666ms\r\n  zombie GET http://aino5.completesecurecarrier.com/?KW=%7BKW%7D&s1=%7Bs1%7D&s2=%7Bs2%7D&s3=%7Bs3%7D&s4=%7Bs4%7D&s5=%7Bs5%7D => 302 http://BBizz.fucknow.kege.info/?sov=1184950635&hid=brbpjfjffrfrnhhn&&redid=11211&gsid=323&id=XNSX.%7Bs1%7D%3A%3A%7Bs2%7D%3A%3A%7Bs3%7D%3A%3A%7Bs4%7D%3A%3A%7Bs5%7D-r11211-t323 +408ms\r\n  zombie GET http://bbizz.fucknow.kege.info/?sov=1184950635&hid=brbpjfjffrfrnhhn&&redid=11211&gsid=323&id=XNSX.%7Bs1%7D%3A%3A%7Bs2%7D%3A%3A%7Bs3%7D%3A%3A%7Bs4%7D%3A%3A%7Bs5%7D-r11211-t323 => 200 +908ms\r\n  zombie Loaded document http://bbizz.fucknow.kege.info/?sov=1184950635&hid=brbpjfjffrfrnhhn&&redid=11211&gsid=323&id=XNSX.%7Bs1%7D%3A%3A%7Bs2%7D%3A%3A%7Bs3%7D%3A%3A%7Bs4%7D%3A%3A%7Bs5%7D-r11211-t323 +35ms\r\n  zombie Opened window http://bbizz.fucknow.kege.info/MOB505adultrotatorwapALL.html  +22ms\r\n  zombie GET http://bbizz.fucknow.kege.info/MOB505adultrotatorwapALL.html => 200 +2s\r\n  zombie Loaded document http://bbizz.fucknow.kege.info/MOB505adultrotatorwapALL.html +10ms\r\n  zombie Opened window http://www.girlsonfire.mobi/?sl=58919-9eaa6&data1=Track1&data2=Track2&data3=qg108afnDb  +7ms\r\n  zombie GET http://www.girlsonfire.mobi/?sl=58919-9eaa6&data1=Track1&data2=Track2&data3=qg108afnDb => 200 +340ms\r\n  zombie Loaded document http://www.girlsonfire.mobi/?sl=58919-9eaa6&data1=Track1&data2=Track2&data3=qg108afnDb +9ms\r\n  zombie GET http://cdn.mobidea.com/websites-files/resources/js/history_injection.js => 200 +266ms\r\n  zombie Fired setTimeout after 0ms delay +5ms\r\n  zombie Opened window http://2015-2.cftrac.info/aff_c?offer_id=720&aff_id=1052&aff_sub3=%7B%7BAFFILIATE_ID%7D%7D&aff_sub=1005500000002330674-201512-6b6253dc17  +4ms\r\n  zombie GET http://2015-2.cftrac.info/aff_c?offer_id=720&aff_id=1052&aff_sub3=%7B%7BAFFILIATE_ID%7D%7D&aff_sub=1005500000002330674-201512-6b6253dc17 => 302 http://2015-2.cftrac.info/aff_r?offer_id=720&aff_id=1052&url=http%3A%2F%2Fad.blinko.ru%2Fclickforward%3Fcr%3D54875%26transaction_id%3D102df343446f4b87827e6742ae3bba%26aff_id%3D1052&urlauth=397418930219902620270515241089 +251ms\r\n\r\n  // ------ [COMMENT FOR GITHUB] ------ THIS REDIRECT 302 FROM 2015-2.cftrac.info TO ad.blinko.ru ------------>>>\r\n  zombie GET http://2015-2.cftrac.info/aff_r?offer_id=720&aff_id=1052&url=http%3A%2F%2Fad.blinko.ru%2Fclickforward%3Fcr%3D54875%26transaction_id%3D102df343446f4b87827e6742ae3bba%26aff_id%3D1052&urlauth=397418930219902620270515241089 => 302 http://ad.blinko.ru/clickforward?cr=54875&transaction_id=102df343446f4b87827e6742ae3bba&aff_id=1052 +348ms\r\n\r\n  // ------ [COMMENT FOR GITHUB] ------ THIS browser.visit CALL CALLBACK, BUT WHY ???  ------------>>>\r\n  /------------------------------------/\r\nLOADEDDDD !!!! http://2015-2.cftrac.info/aff_c?offer_id=720&aff_id=1052&aff_sub3=%7B%7BAFFILIATE_ID%7D%7D&aff_sub=1005500000002330674-201512-6b6253dc17\r\n  /------------------------------------/\r\n\r\n  zombie GET http://ad.blinko.ru/clickforward?cr=54875&transaction_id=102df343446f4b87827e6742ae3bba&aff_id=1052 => 302 http://ad.blinko.ru/adultshit +351ms\r\n  zombie GET http://ad.blinko.ru/adultshit => 302 http://apps.blinko.ru/page/bonga_cams/2/ +460ms\r\n  \r\n  // ------ [COMMENT FOR GITHUB] ------ THIS IS LAST POINT THAT I NEED, AND THAT I EXPECTED IN browser.visit CALLBACK.  ------------>>>\r\n  zombie GET http://apps.blinko.ru/page/bonga_cams/2/ => 200 +179ms\r\n```\r\n\r\nWhat am I doing wrong ?"},"comment":{"url":"https://api.github.com/repos/assaf/zombie/issues/comments/163653048","html_url":"https://github.com/assaf/zombie/issues/986#issuecomment-163653048","issue_url":"https://api.github.com/repos/assaf/zombie/issues/986","id":163653048,"user":{"login":"z-vr","id":3825545,"avatar_url":"https://avatars.githubusercontent.com/u/3825545?v=3","gravatar_id":"","url":"https://api.github.com/users/z-vr","html_url":"https://github.com/z-vr","followers_url":"https://api.github.com/users/z-vr/followers","following_url":"https://api.github.com/users/z-vr/following{/other_user}","gists_url":"https://api.github.com/users/z-vr/gists{/gist_id}","starred_url":"https://api.github.com/users/z-vr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z-vr/subscriptions","organizations_url":"https://api.github.com/users/z-vr/orgs","repos_url":"https://api.github.com/users/z-vr/repos","events_url":"https://api.github.com/users/z-vr/events{/privacy}","received_events_url":"https://api.github.com/users/z-vr/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T15:08:34Z","updated_at":"2015-12-10T15:08:34Z","body":"on the same note, could somebody explain please why it is not possible to know when all resources have been downloaded and all script been executed, so that we can wait for all these things to happen rather than waiting some constant time?"}}