Skip to content

Commit 2f9829d

Browse files
committed
minify aboutblank page contents
1 parent 1cf6ab5 commit 2f9829d

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/browser/browser.zig

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -397,21 +397,11 @@ pub const Page = struct {
397397

398398
// A minimal reader for about:blank such that it can be parsed by loadHTMLDoc.
399399
pub const AboutBlank = struct {
400-
const content =
401-
\\ <!DOCTYPE html>
402-
\\ <html>
403-
\\ <head>
404-
\\ <title></title>
405-
\\ </head>
406-
\\ <body>
407-
\\ </body>
408-
\\ </html>
409-
;
410400
done: bool = false,
411401
pub fn next(self: *AboutBlank) !?[]const u8 {
412402
if (self.done) return null;
413403
self.done = true;
414-
return AboutBlank.content;
404+
return ""; // The contents is blank
415405
}
416406
};
417407

0 commit comments

Comments
 (0)