 
   loadDashboard: (cx) =>
     $.getJSON '/api/v1/projects', (data) =>
-      @projects.removeAll()
-      for d in data
-        @projects.push(new Project d)
+      start_time = Date.now()
+      @projects((new Project d for d in data))
+      window.time_taken_projects = Date.now() - start_time
       if @first_login
         @first_login = false
         setTimeout(() => @loadDashboard cx, 3000)
 
 
     $.getJSON '/api/v1/recent-builds', (data) =>
-      @recent_builds.removeAll()
-      for d in data
-        @recent_builds.push(new Build d)
+      start_time = Date.now()
+      @recent_builds((new Build d for d in data))
+      window.time_taken_recent_builds = Date.now() - start_time
 
     display "dashboard", {}
 

  loadProject: (cx, username, project) =>
    project_name = "#{username}/#{project}"
    $.getJSON "/api/v1/project/#{project_name}", (data) =>
      @builds.removeAll()
      for d in data
        @builds.push(new Build d)
    display "project", {project: project_name}


  loadBuild: (cx, username, project, build_num) =>
    project_name = "#{username}/#{project}"
    $.getJSON "/api/v1/project/#{project_name}/#{build_num}", (data) =>
      @build(new Build data)
    display "build", {project: project_name, build_num: build_num}



        @status

    @committer_mailto = @komp =>
      if @committer_email
        "mailto:#{@committer_email}"

    @why_in_words = @komp =>
      switch @why()
