more benchmarking

pull/216/head
Aevann 2023-10-27 10:28:20 +03:00
parent c0c3b248e0
commit 63992659fc
1 changed files with 3 additions and 1 deletions

View File

@ -154,13 +154,13 @@ const emojisSearchDictionary = {
// get public emojis list
function fetchEmojis() {
const t = Date.now() / 1000
const headers = new Headers({xhr: "xhr"})
return fetch("/emojis.json", {
headers,
})
.then(res => res.json())
.then(emojis => {
const t = Date.now() / 1000
if (! (emojis instanceof Array ))
throw new TypeError("[EMOJI DIALOG] rDrama's server should have sent a JSON-coded Array!");
@ -170,6 +170,8 @@ function fetchEmojis() {
const bussyDOM = document.createElement("div");
console.log(Date.now() / 1000 - t)
for(let i = 0; i < emojis.length; i++)
{
const emoji = emojis[i];