mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
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.
This commit is contained in:
parent
830fe189ad
commit
6c788feaf7
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue