forked from MarseyWorld/MarseyWorld
more benchmarking
parent
c0c3b248e0
commit
63992659fc
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue