From 6c788feaf71e57c14d537a42071494be9261e8bb Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Fri, 20 Jan 2017 21:44:08 +0100 Subject: [PATCH] Process pending parsing blocking script before deferred scripts Processing the blocking script beforehand may allow the parser to finish parsing, in which case deferred scripts have the opportunity to get executed. --- components/script/dom/document.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index c1f4d056894..e34e865917b 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -1549,8 +1549,8 @@ impl Document { match load { LoadType::Stylesheet(_) => { - self.process_deferred_scripts(); self.process_pending_parsing_blocking_script(); + self.process_deferred_scripts(); }, LoadType::PageSource(_) => { self.process_deferred_scripts();