page_params: Move page_load_time to zulip_test.

This isn’t sent by the server; it’s a client-side global variable.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-12-28 17:23:51 -08:00
committed by Anders Kaseorg
parent baf6c68ab8
commit 2cf8f1c063
4 changed files with 6 additions and 6 deletions

View File

@@ -5,6 +5,8 @@ import * as loading from "./loading";
import {page_params} from "./page_params";
import * as util from "./util";
export let page_load_time: number | undefined;
// Miscellaneous early setup.
$(() => {
if (util.is_mobile()) {
@@ -12,7 +14,7 @@ $(() => {
page_params.needs_tutorial = false;
}
page_params.page_load_time = Date.now();
page_load_time = Date.now();
// Display loading indicator. This disappears after the first
// get_events completes.