diff --git a/components/script/document_loader.rs b/components/script/document_loader.rs index c6c33fc1a5d..b702c6b30ed 100644 --- a/components/script/document_loader.rs +++ b/components/script/document_loader.rs @@ -120,6 +120,7 @@ impl DocumentLoader { } } + /// Add a load to the list of blocking loads. pub fn add_blocking_load(&mut self, load: LoadType) { self.blocking_loads.push(load); } diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 18cbbabf15c..99a61d2f981 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -1231,6 +1231,7 @@ impl Document { ReflowReason::RequestAnimationFrame); } + /// Add a load to the list of loads blocking this document's load. pub fn add_blocking_load(&self, load: LoadType) { let mut loader = self.loader.borrow_mut(); loader.add_blocking_load(load)