added spec comments

This commit is contained in:
ddh 2018-04-11 21:29:03 +01:00
parent 7462eda675
commit e5a009ee98

View file

@ -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)
@ -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>,