mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Make parser <script> elements delay the document load event
This commit is contained in:
parent
fc2a255c72
commit
65e0f8184d
Notes:
sideshowbarker
2024-07-18 03:26:57 +09:00
Author: https://github.com/awesomekling
Commit: 65e0f8184d
2 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Function.h>
|
||||
#include <LibWeb/DOM/DocumentLoadEventDelayer.h>
|
||||
#include <LibWeb/HTML/HTMLElement.h>
|
||||
#include <LibWeb/HTML/Scripting/Script.h>
|
||||
|
||||
|
@ -63,6 +64,8 @@ private:
|
|||
Function<void()> m_script_ready_callback;
|
||||
|
||||
RefPtr<Script> m_script;
|
||||
|
||||
Optional<DOM::DocumentLoadEventDelayer> m_document_load_event_delayer;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue