mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-14 15:28:57 +00:00
run microtasks before firing onload
This commit is contained in:
@@ -662,6 +662,9 @@ pub const Page = struct {
|
||||
}
|
||||
|
||||
fn _documentIsComplete(self: *Page) !void {
|
||||
self.session.browser.runMicrotasks();
|
||||
self.session.browser.runMessageLoop();
|
||||
|
||||
try HTMLDocument.documentIsComplete(self.window.document, self);
|
||||
|
||||
// dispatch window.load event
|
||||
|
||||
Reference in New Issue
Block a user