From c0c3b248e019bd070514e7f5f55987af0f68f1f1 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 27 Oct 2023 10:16:41 +0300 Subject: [PATCH] benchmark --- files/assets/js/emoji_modal.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index c3eaa3f0c..62a7f6a4e 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -154,6 +154,7 @@ const emojisSearchDictionary = { // get public emojis list function fetchEmojis() { + const t = Date.now() / 1000 const headers = new Headers({xhr: "xhr"}) return fetch("/emojis.json", { headers, @@ -242,6 +243,8 @@ function fetchEmojis() { emojiSearchBarDOM.disabled = false; emojiEngineState = "ready"; + + console.log(Date.now() / 1000 - t) }) }