Add a topLevelDomComplete metric.

This commit is contained in:
Alan Jeffrey 2017-12-14 16:48:19 -06:00
parent 26feea3be5
commit 074447e501
7 changed files with 59 additions and 0 deletions

View file

@ -141,6 +141,13 @@ impl DocumentLoader {
!self.blocking_loads.is_empty()
}
pub fn is_only_blocked_by_iframes(&self) -> bool {
self.blocking_loads.iter().all(|load| match *load {
LoadType::Subframe(_) => true,
_ => false
})
}
pub fn inhibit_events(&mut self) {
self.events_inhibited = true;
}