{"action":"created","issue":{"url":"https://api.github.com/repos/projectkudu/WebJobsPortal/issues/142","repository_url":"https://api.github.com/repos/projectkudu/WebJobsPortal","labels_url":"https://api.github.com/repos/projectkudu/WebJobsPortal/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/projectkudu/WebJobsPortal/issues/142/comments","events_url":"https://api.github.com/repos/projectkudu/WebJobsPortal/issues/142/events","html_url":"https://github.com/projectkudu/WebJobsPortal/issues/142","id":142477495,"number":142,"title":"\"Run\" button for an HTTP-triggered function can be unnecessarily slow","user":{"login":"BilalAlam","id":17733334,"avatar_url":"https://avatars.githubusercontent.com/u/17733334?v=3","gravatar_id":"","url":"https://api.github.com/users/BilalAlam","html_url":"https://github.com/BilalAlam","followers_url":"https://api.github.com/users/BilalAlam/followers","following_url":"https://api.github.com/users/BilalAlam/following{/other_user}","gists_url":"https://api.github.com/users/BilalAlam/gists{/gist_id}","starred_url":"https://api.github.com/users/BilalAlam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BilalAlam/subscriptions","organizations_url":"https://api.github.com/users/BilalAlam/orgs","repos_url":"https://api.github.com/users/BilalAlam/repos","events_url":"https://api.github.com/users/BilalAlam/events{/privacy}","received_events_url":"https://api.github.com/users/BilalAlam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ahmelsayed","id":645740,"avatar_url":"https://avatars.githubusercontent.com/u/645740?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmelsayed","html_url":"https://github.com/ahmelsayed","followers_url":"https://api.github.com/users/ahmelsayed/followers","following_url":"https://api.github.com/users/ahmelsayed/following{/other_user}","gists_url":"https://api.github.com/users/ahmelsayed/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmelsayed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmelsayed/subscriptions","organizations_url":"https://api.github.com/users/ahmelsayed/orgs","repos_url":"https://api.github.com/users/ahmelsayed/repos","events_url":"https://api.github.com/users/ahmelsayed/events{/privacy}","received_events_url":"https://api.github.com/users/ahmelsayed/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/projectkudu/WebJobsPortal/milestones/2","html_url":"https://github.com/projectkudu/WebJobsPortal/milestones/backlog","labels_url":"https://api.github.com/repos/projectkudu/WebJobsPortal/milestones/2/labels","id":1638236,"number":2,"title":"backlog","description":"","creator":{"login":"davidebbo","id":556238,"avatar_url":"https://avatars.githubusercontent.com/u/556238?v=3","gravatar_id":"","url":"https://api.github.com/users/davidebbo","html_url":"https://github.com/davidebbo","followers_url":"https://api.github.com/users/davidebbo/followers","following_url":"https://api.github.com/users/davidebbo/following{/other_user}","gists_url":"https://api.github.com/users/davidebbo/gists{/gist_id}","starred_url":"https://api.github.com/users/davidebbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidebbo/subscriptions","organizations_url":"https://api.github.com/users/davidebbo/orgs","repos_url":"https://api.github.com/users/davidebbo/repos","events_url":"https://api.github.com/users/davidebbo/events{/privacy}","received_events_url":"https://api.github.com/users/davidebbo/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":2,"state":"open","created_at":"2016-03-11T02:59:28Z","updated_at":"2016-03-22T00:12:41Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-03-21T21:32:12Z","updated_at":"2016-03-22T00:53:30Z","closed_at":null,"body":"1) Create a simple HTTP trigger based c# function.  \r\n2) Keep hitting run.  You'll see it returns back in reasonable time (<1 second most times after first)\r\n3) Now wait 10 seconds.\r\n4) Hit run again.  It now takes 4-5 seconds.\r\n5) Throughout, if you hit the function from a browser it comes back superfast each time.  \r\n\r\nSo this leads me to believe that the \"run\" button either blocks on some logging to complete, or does something else which is time consuming and unrelated to the function execution.  \r\n\r\nThis makes the platform feel much slower than it is.  "},"comment":{"url":"https://api.github.com/repos/projectkudu/WebJobsPortal/issues/comments/199565964","html_url":"https://github.com/projectkudu/WebJobsPortal/issues/142#issuecomment-199565964","issue_url":"https://api.github.com/repos/projectkudu/WebJobsPortal/issues/142","id":199565964,"user":{"login":"ahmelsayed","id":645740,"avatar_url":"https://avatars.githubusercontent.com/u/645740?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmelsayed","html_url":"https://github.com/ahmelsayed","followers_url":"https://api.github.com/users/ahmelsayed/followers","following_url":"https://api.github.com/users/ahmelsayed/following{/other_user}","gists_url":"https://api.github.com/users/ahmelsayed/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmelsayed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmelsayed/subscriptions","organizations_url":"https://api.github.com/users/ahmelsayed/orgs","repos_url":"https://api.github.com/users/ahmelsayed/repos","events_url":"https://api.github.com/users/ahmelsayed/events{/privacy}","received_events_url":"https://api.github.com/users/ahmelsayed/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T00:53:30Z","updated_at":"2016-03-22T00:53:30Z","body":"The only thing that I think may cause this is that we were going through a proxy on F.A.C backend to be able to hit the main site. With f48b530ba506b69e96886cd29c3756c763335667 this should no longer be the case. We're setting CORS on all containers for F.A.C.\r\n\r\nWe [don't really have any delay in firing the xhr](https://github.com/projectkudu/WebJobsPortal/blob/master/AzureFunctions.Client/app/components/function-dev.component.ts#L177-L189), unless if you have a dirty code editor, then we save the data first, wait for 200 msec, then send the xhr."}}