mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-15 15:58:57 +00:00
no need to run microtasks before onload
This commit is contained in:
@@ -429,9 +429,6 @@ pub fn documentIsComplete(self: *Page) void {
|
|||||||
fn _documentIsComplete(self: *Page) !void {
|
fn _documentIsComplete(self: *Page) !void {
|
||||||
self.document._ready_state = .complete;
|
self.document._ready_state = .complete;
|
||||||
|
|
||||||
self._session.browser.runMicrotasks();
|
|
||||||
self._session.browser.runMessageLoop();
|
|
||||||
|
|
||||||
// dispatch window.load event
|
// dispatch window.load event
|
||||||
const event = try Event.init("load", .{}, self);
|
const event = try Event.init("load", .{}, self);
|
||||||
// this event is weird, it's dispatched directly on the window, but
|
// this event is weird, it's dispatched directly on the window, but
|
||||||
|
|||||||
Reference in New Issue
Block a user