1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 19:15:09 +00:00

LibWeb: Make parser <script> elements delay the document load event

This commit is contained in:
Andreas Kling 2021-09-26 02:03:56 +02:00
parent fc2a255c72
commit 65e0f8184d
2 changed files with 8 additions and 0 deletions

View file

@ -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;
};
}