mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
added spec comments
This commit is contained in:
parent
7462eda675
commit
e5a009ee98
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,7 @@ fn set_metric<U: ProgressiveWebMetric>(
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// spec: https://github.com/WICG/time-to-interactive
|
||||||
// https://github.com/GoogleChrome/lighthouse/issues/27
|
// https://github.com/GoogleChrome/lighthouse/issues/27
|
||||||
// we can look at three different metrics here:
|
// we can look at three different metrics here:
|
||||||
// navigation start -> visually ready (dom content loaded)
|
// navigation start -> visually ready (dom content loaded)
|
||||||
|
@ -259,6 +260,7 @@ impl ProgressiveWebMetric for InteractiveMetrics {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://w3c.github.io/paint-timing/
|
||||||
pub struct PaintTimeMetrics {
|
pub struct PaintTimeMetrics {
|
||||||
pending_metrics: RefCell<HashMap<Epoch, (Option<TimerMetadata>, bool)>>,
|
pending_metrics: RefCell<HashMap<Epoch, (Option<TimerMetadata>, bool)>>,
|
||||||
navigation_start: Option<u64>,
|
navigation_start: Option<u64>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue