mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
page_params: Record page_params_parse_time.
We put page_params_parse_time on the window object to help diagnose customer issues.
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
const t1 = performance.now();
|
||||
window.page_params = $("#page-params").remove().data("params");
|
||||
const t2 = performance.now();
|
||||
window.page_params_parse_time = t2 - t1;
|
||||
if (!window.page_params) {
|
||||
throw new Error("Missing page-params");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user