{"action":"closed","issue":{"url":"https://api.github.com/repos/FlorianRappl/AngleSharp/issues/96","labels_url":"https://api.github.com/repos/FlorianRappl/AngleSharp/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/FlorianRappl/AngleSharp/issues/96/comments","events_url":"https://api.github.com/repos/FlorianRappl/AngleSharp/issues/96/events","html_url":"https://github.com/FlorianRappl/AngleSharp/issues/96","id":88768745,"number":96,"title":"Still have problems while loading websites","user":{"login":"ossaltu","id":1698921,"avatar_url":"https://avatars.githubusercontent.com/u/1698921?v=3","gravatar_id":"","url":"https://api.github.com/users/ossaltu","html_url":"https://github.com/ossaltu","followers_url":"https://api.github.com/users/ossaltu/followers","following_url":"https://api.github.com/users/ossaltu/following{/other_user}","gists_url":"https://api.github.com/users/ossaltu/gists{/gist_id}","starred_url":"https://api.github.com/users/ossaltu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ossaltu/subscriptions","organizations_url":"https://api.github.com/users/ossaltu/orgs","repos_url":"https://api.github.com/users/ossaltu/repos","events_url":"https://api.github.com/users/ossaltu/events{/privacy}","received_events_url":"https://api.github.com/users/ossaltu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FlorianRappl/AngleSharp/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"FlorianRappl","id":1766191,"avatar_url":"https://avatars.githubusercontent.com/u/1766191?v=3","gravatar_id":"","url":"https://api.github.com/users/FlorianRappl","html_url":"https://github.com/FlorianRappl","followers_url":"https://api.github.com/users/FlorianRappl/followers","following_url":"https://api.github.com/users/FlorianRappl/following{/other_user}","gists_url":"https://api.github.com/users/FlorianRappl/gists{/gist_id}","starred_url":"https://api.github.com/users/FlorianRappl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlorianRappl/subscriptions","organizations_url":"https://api.github.com/users/FlorianRappl/orgs","repos_url":"https://api.github.com/users/FlorianRappl/repos","events_url":"https://api.github.com/users/FlorianRappl/events{/privacy}","received_events_url":"https://api.github.com/users/FlorianRappl/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/FlorianRappl/AngleSharp/milestones/9","html_url":"https://github.com/FlorianRappl/AngleSharp/milestones/v0.8.6","labels_url":"https://api.github.com/repos/FlorianRappl/AngleSharp/milestones/9/labels","id":1168401,"number":9,"title":"v0.8.6","description":null,"creator":{"login":"FlorianRappl","id":1766191,"avatar_url":"https://avatars.githubusercontent.com/u/1766191?v=3","gravatar_id":"","url":"https://api.github.com/users/FlorianRappl","html_url":"https://github.com/FlorianRappl","followers_url":"https://api.github.com/users/FlorianRappl/followers","following_url":"https://api.github.com/users/FlorianRappl/following{/other_user}","gists_url":"https://api.github.com/users/FlorianRappl/gists{/gist_id}","starred_url":"https://api.github.com/users/FlorianRappl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlorianRappl/subscriptions","organizations_url":"https://api.github.com/users/FlorianRappl/orgs","repos_url":"https://api.github.com/users/FlorianRappl/repos","events_url":"https://api.github.com/users/FlorianRappl/events{/privacy}","received_events_url":"https://api.github.com/users/FlorianRappl/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":4,"state":"open","created_at":"2015-06-17T11:42:00Z","updated_at":"2015-06-20T13:48:03Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-06-16T16:02:51Z","updated_at":"2015-06-20T13:48:03Z","closed_at":"2015-06-20T13:48:03Z","body":"It is related to #92 issue. The related test passes:\r\n\r\n```\r\npublic async Task ContextLoadAmazonWithCss()\r\n        {\r\n            if (Helper.IsNetworkAvailable())\r\n            {\r\n                var url = \"http://www.amazon.com\";\r\n                var config = new Configuration().WithDefaultLoader().WithCss();\r\n                var document = await BrowsingContext.New(config).OpenAsync(url);\r\n                Assert.IsNotNull(document);\r\n                Assert.AreNotEqual(0, document.Body.ChildElementCount);\r\n            }\r\n        }\r\n```\r\nbut the test itself is not correct, it would pass when exceptions in asyncronious loading of images, css, etc. whould accur.\r\nThe correct test would probably be:\r\n```\r\npublic async Task ContextLoadAmazonWithCss()\r\n        {\r\n            if (Helper.IsNetworkAvailable())\r\n            {\r\n                var url = \"http://www.amazon.com\";\r\n                var config = new Configuration().WithDefaultLoader().WithCss();\r\n                var document = await BrowsingContext.New(config).OpenAsync(url);\r\n\r\n                await Task.WhenAll(document.Requests);\r\n\r\n                Assert.IsNotNull(document);\r\n                Assert.AreNotEqual(0, document.Body.ChildElementCount);\r\n            }\r\n        }\r\n```\r\n\r\nNow it fails :)"}}