{"action":"created","issue":{"url":"https://api.github.com/repos/FlorianRappl/AngleSharp/issues/104","labels_url":"https://api.github.com/repos/FlorianRappl/AngleSharp/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/FlorianRappl/AngleSharp/issues/104/comments","events_url":"https://api.github.com/repos/FlorianRappl/AngleSharp/issues/104/events","html_url":"https://github.com/FlorianRappl/AngleSharp/issues/104","id":90379332,"number":104,"title":"Request is considered done, when data is downloaded instead when data is processed","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/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"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":"","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":2,"closed_issues":6,"state":"open","created_at":"2015-06-17T11:42:00Z","updated_at":"2015-06-25T03:58:45Z","due_on":"2015-07-01T04:00:00Z","closed_at":null},"comments":9,"created_at":"2015-06-23T12:50:48Z","updated_at":"2015-06-25T13:05:52Z","closed_at":"2015-06-23T23:26:23Z","body":"Here is the example\r\n```\r\nvar html = @\"<html>\r\n  <head>\r\n     <title>test title</title>\r\n     <link href='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css' rel='stylesheet'>\r\n    </head>\r\n    <body>\r\n    </body>\r\n</html>\";\r\n\r\nvar config = new Configuration().WithDefaultLoader(l => l.IsResourceLoadingEnabled = true).WithCss();\r\nvar loaded = await BrowsingContext.New(config).OpenAsync(m => m.Content(html));\r\nawait Task.WhenAll(loaded.Requests);\r\nConsole.WriteLine(loaded.StyleSheets.Count()); // outputs 0, sometimes might be 1\r\nawait Task.Delay(5000);\r\nConsole.WriteLine(loaded.StyleSheets.Count()); // outputs 1\r\n```\r\n\r\nThe problem is that css is parsed after \r\n```\r\nawait Task.WhenAll(loaded.Requests);\r\n```\r\n\r\nand there is no way to figure out when document is actualy ready."},"comment":{"url":"https://api.github.com/repos/FlorianRappl/AngleSharp/issues/comments/115248187","html_url":"https://github.com/FlorianRappl/AngleSharp/issues/104#issuecomment-115248187","issue_url":"https://api.github.com/repos/FlorianRappl/AngleSharp/issues/104","id":115248187,"user":{"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},"created_at":"2015-06-25T13:05:52Z","updated_at":"2015-06-25T13:05:52Z","body":"Sounds like somebody who complains about \"a bug\" in floating point arithmetics when he looks at 0.1 + 0.1 + 0.1.\r\n\r\nNevertheless all you need for your scenario is already available ... The `load` event was the only missing thing prior to that issue."}}