Improve page.wait

Allow page.wait to transition page mode.

Optimize initial page load. No point running scheduler until the initial
page is loaded.

Support ISO-8859-1 charset
This commit is contained in:
Karl Seguin
2025-08-02 13:13:58 +08:00
parent 77475ca5e4
commit 4244b572d1
4 changed files with 42 additions and 27 deletions

View File

@@ -408,6 +408,7 @@ pub const JsRunner = struct {
const html_doc = try parser.documentHTMLParseFromStr(opts.html);
try page.setDocument(html_doc);
page.mode = .{ .parsed = {} };
return .{
.app = app,