mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-04-03 16:10:29 +00:00
move script queue log before request
This commit is contained in:
@@ -273,7 +273,19 @@ pub fn addFromElement(self: *ScriptManager, comptime from_parser: bool, script_e
|
|||||||
// Let the outer errdefer handle releasing the arena if client.request fails
|
// Let the outer errdefer handle releasing the arena if client.request fails
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we return synchronously (like from cache), we would call evaluate() immediately.
|
if (comptime IS_DEBUG) {
|
||||||
|
var ls: js.Local.Scope = undefined;
|
||||||
|
page.js.localScope(&ls);
|
||||||
|
defer ls.deinit();
|
||||||
|
|
||||||
|
log.debug(.http, "script queue", .{
|
||||||
|
.ctx = ctx,
|
||||||
|
.url = remote_url.?,
|
||||||
|
.element = element,
|
||||||
|
.stack = ls.local.stackTrace() catch "???",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
const was_evaluating = self.is_evaluating;
|
const was_evaluating = self.is_evaluating;
|
||||||
self.is_evaluating = true;
|
self.is_evaluating = true;
|
||||||
@@ -299,19 +311,6 @@ pub fn addFromElement(self: *ScriptManager, comptime from_parser: bool, script_e
|
|||||||
}
|
}
|
||||||
|
|
||||||
handover = true;
|
handover = true;
|
||||||
|
|
||||||
if (comptime IS_DEBUG) {
|
|
||||||
var ls: js.Local.Scope = undefined;
|
|
||||||
page.js.localScope(&ls);
|
|
||||||
defer ls.deinit();
|
|
||||||
|
|
||||||
log.debug(.http, "script queue", .{
|
|
||||||
.ctx = ctx,
|
|
||||||
.url = remote_url.?,
|
|
||||||
.element = element,
|
|
||||||
.stack = ls.local.stackTrace() catch "???",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_blocking == false) {
|
if (is_blocking == false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user