Skip to content

Commit

Permalink
added spec comments
Browse files Browse the repository at this point in the history
  • Loading branch information
avadacatavra committed Apr 11, 2018
1 parent 7462eda commit e5a009e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/metrics/lib.rs
Expand Up @@ -102,6 +102,7 @@ fn set_metric<U: ProgressiveWebMetric>(

}

// spec: https://github.com/WICG/time-to-interactive
// https://github.com/GoogleChrome/lighthouse/issues/27
// we can look at three different metrics here:
// navigation start -> visually ready (dom content loaded)
Expand Down Expand Up @@ -259,6 +260,7 @@ impl ProgressiveWebMetric for InteractiveMetrics {
}
}

// https://w3c.github.io/paint-timing/
pub struct PaintTimeMetrics {
pending_metrics: RefCell<HashMap<Epoch, (Option<TimerMetadata>, bool)>>,
navigation_start: Option<u64>,
Expand Down

0 comments on commit e5a009e

Please sign in to comment.