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